Some out-of-the-box hooks for pre-commit
check-executables-have-shebangs
: on windows, validate the mode bits using git
requirements-txt-fixer
: support more operators
pre-commit-hooks-removed
: Fix when removed hooks used args
detect-aws-credentials
: skip empty aws keys
debug-statements
: add detection wdb
debugger
requirements-txt-fixer
: support line continuation for dependencies
detect-aws-credentials
: fix UnicodeDecodeError
when running on non-UTF8 files.
pre-commit/pre-commit-hooks now requires python3.6.1+
flake8
/ pyflakes
have been removed, use flake8
from pycqa/flake8
instead:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
hooks:
- id: flake8
pretty-format-json
when run without --autofix
.
--chars
option to trailing-whitespace
fixer to control which characters are stripped instead of all whitespace.
requirements-txt-fixer
when file does not end in a newline.
pretty-format-json
.
rpdb
to detected debuggers in debug-statements
check-toml
hook
__main__
block to pre_commit.file_contents_sorter
so it can be invoked using python -m
git-lfs
tests in azure pipelines