question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: `list` subcommand to show all installed pre-commit hooks

See original GitHub issue

I am looking for an easy and reliable way to list all installed pre-commit hooks and couldn’t find one.

Hence the proposal to have a list or list-installed-hooks or similar subcommand for pre-commit that lists all installed hooks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
asottilecommented, Oct 27, 2022

this is what’s called an XY problem. you didn’t state what you wanted to do up front and instead prescribed a completely unrelated solution that wouldn’t have even helped your problem. in the future just state what you’re actually trying to do

1reaction
asottilecommented, Oct 27, 2022

just use pre-commit run whatevertool?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supported hooks - pre-commit
github.com/pre-commit/pre-commit-hooks. check-added-large-files - prevents giant files from being committed. check-ast - simply checks whether the files ...
Read more >
Git Hooks - Git SCM
The hooks are all stored in the hooks subdirectory of the Git directory. ... The pre-commit hook is run first, before you even...
Read more >
Git Hooks | Atlassian Git Tutorial
All Git hooks are ordinary scripts that Git executes when certain events occur in the repository. This makes them very easy to install...
Read more >
Git Hooks | Learn how to use pre-commit hooks, post-commit ...
An introductory guide and resource for Git hooks. Learn how to use pre-commit hooks, post-commit hooks, post-receive hooks, and more.
Read more >
Getting Started with Python Pre-commit Hooks
Pre -commit hooks are often used to make sure code is linted and formatted properly before being published. In our project, we use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found