Some out-of-the-box hooks for pre-commit
pyyaml
to ruamel.yaml
--pattern
option to no-commit-to-branch
for regex matching branch names.
require_serial: true
for flake8
check-executables-have-shebangs
/ trailing-whitespace
hooks during the commit-msg
stage.
check-byte-order-marker
against types: [text]
check-docstring-first
pre-commit-hooks
now is type checked with mypy.
detect-private-key
mixed-line-endings
end-of-file-fixer
detect-aws-credentials
autopep8-wrapper
is deprecated in description
autopep8-wrapper
has been moved to pre-commit/mirrors-autopep8
trailing-whitespace
defaults to --no-markdown-linebreak-ext
hooks.yaml
(legacy pre-commit hook metadata) deleted
types
compatibility metadata removed
no-commit-to-branch
pre-commit
is now 0.15.0autopep8
from pre-commit/mirrors-autopep8
trailing-whitespace
use args: [--markdown-linebreak-ext=md,markdown]
(the previous default value)no-commit-to-branch
: allow --branch
to be specified multiple times
check-merge-conflict
: add --assume-in-merge
to force checks outside of a merge commit situation
ResourcesWarning
s
--unsafe
argument to check-yaml
to allow custom yaml tags
pkg-resources==0.0.0
in requirements-txt-fixer
breakpoint()
(python3.7+) in debug-statements
hook.
detect-private-key
autopep8-wrapper
, check-docstring-first
, double-quote-string-fixer
)
AttributeError
in check-builtin-literals
for some functions