pre-commit install
Install the pre-commit script
Options
Name | Description |
---|---|
-h, --help | Show help message and exit |
--color <color> | Whether to use color in output. Defaults to `auto` |
--config, -c <CONFIG> | Path to alternate config file |
-f, --overwrite | Overwrite existing hooks / remove migration mode |
install-hooks | Whether to install hook environments for all environments in the config file |
-t, --hook-type <HOOK_TYPE> | Type of hook to install |
--allow-missing-config | Whether to allow a missing `pre-commit` configuration file or exit with a failure code |