pre-commit <arg>
Pre-commit
Arguments
Name | Description |
---|---|
arg |
Subcommands
Name | Description |
---|---|
autoupdate | Auto-update pre-commit config to the latest repos' versions |
clean | Clean out pre-commit files |
gc | Clean unused cached repos |
init-templatedir | Install hook script in a directory intended for use with `git config init.templateDir` |
install | Install the pre-commit script |
migrate-config | Migrate list configuration to new map configuration |
run | Run hooks |
sample-config | Produce a sample .pre-commit-config.yaml file |
try-repo | Try the hooks in a repository, useful for developing new hooks |
uninstall | Uninstall the pre-commit script |
help | Show help for a specific command |
Options
Name | Description |
---|---|
-h, --help | Show help message and exit |
-V, --version | Show program's version number and exit |