mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-06 23:39:13 -05:00
2f4199850dfbb9efa0680daeab6d1de23526227a
--allow-missing-config option to install
When no '.pre-commit-config.yaml' file exists while `pre-commit` hooks are enabled, `pre-commit` returns an error and the action is aborted. This is a very common scenario when pre-commit is added later on a project and the user wants to work on a previous branch where the configuration file does not exist. This commits allow the user to optionally install the `pre-commit` hooks with an option to allow a missing configuration and trigger only the legacy pre-commit hooks (if any) when it is missing.
pre-commit
A framework for managing and maintaining multi-language pre-commit hooks.
For more information see: http://pre-commit.com/
Languages
Python
97.3%
R
2%
Shell
0.5%