Skip to content

pre-commit-hooks v2.2.0

Compare
Choose a tag to compare
@asottile asottile released this 21 Apr 20:19
e6e26c3

Features

  • Switch from pyyaml to ruamel.yaml
    • This enforces (among other things) duplicate key checking in yaml.
    • #351 PR by @asottile.
  • Add a new --pattern option to no-commit-to-branch for regex matching branch names.

Fixes

  • Set require_serial: true for flake8
  • Don't run check-executables-have-shebangs / trailing-whitespace hooks during the commit-msg stage.
  • Run check-byte-order-marker against types: [text]
  • Do not require UTF-8-encoded files for check-docstring-first

Misc.

  • pre-commit-hooks now is type checked with mypy.