- Installation: https://pre-commit.com/#installation.
- Configuration file:
.pre-commit-config.yamlat the root of repository. - Installing the git hook scripts:
pre-commit install. - Running against all files (optional):
pre-commit run --all-files. - Supported hooks: https://pre-commit.com/hooks.html.
- Setting up pre-commit.ci for organization repository: https://github.com/marketplace/pre-commit-ci (we need owner of organziation to setup). (update 6/21/22- pre-commit.ci has been added)