hooks in repo: https://github.com/pre-commit/pre-commit-hooks ¶
- check-added-large-files prevent giant files from being committed
- check-executables-have-shebangs checks that non-binary executables have a proper shebang.
- check-yaml attempts to load all yaml files to verify syntax
- check-json attempts to load all json files to verify syntax
- end-of-file-fixer makes sure files end in a newline and only a newline
- fix-encoding-pragma remove the coding pragma in a python3-only codebase.
- forbid-new-submodules prevent addition of new git submodules
- mixed-line-ending replaces or checks mixed line ending
- no-commit-to-branch protect specific branches from direct checkins
- pretty-format-json checks that all your JSON files are pretty
- trailing-whitespace trims trailing whitespace
- Some out-of-the-box hooks for pre-commit.