Enabling Pre-Commit Checks¶
There's a pre-commit config file available in the repository root (.pre-commit-config.yaml
) that can be used to enable automatic checks upon commit - the commit will not go through if the checks don't pass.
To enable pre-commit, the following must be ran once:
pip install pre-commit
pre-commit install
Bypassing pre-commit checks
Enabling of pre-commit checks is not mandatory (it cannot be enforced) and even if it is enabled, it can always be bypassed with:
git commit --no-verify