pre-commit <arg>

Pre-commit

Arguments

NameDescription
arg

Subcommands

NameDescription
autoupdateAuto-update pre-commit config to the latest repos' versions
cleanClean out pre-commit files
gcClean unused cached repos
init-templatedirInstall hook script in a directory intended for use with `git config init.templateDir`
installInstall the pre-commit script
migrate-configMigrate list configuration to new map configuration
runRun hooks
sample-configProduce a sample .pre-commit-config.yaml file
try-repoTry the hooks in a repository, useful for developing new hooks
uninstallUninstall the pre-commit script
helpShow help for a specific command

Options

NameDescription
-h,--helpShow help message and exit
-V,--versionShow program's version number and exit