Skip to content

Releases: pre-commit/pre-commit-hooks

pre-commit-hooks v2.2.1

21 Apr 20:20
Compare
Choose a tag to compare

Fixes

pre-commit-hooks v2.2.0

21 Apr 20:19
e6e26c3
Compare
Choose a tag to compare

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.

pre-commit-hooks v2.1.0

21 Apr 19:49
Compare
Choose a tag to compare

Features

  • Detect PGP/GPG private keys in detect-private-key
  • Report filenames when fixing files in mixed-line-endings

Fixes

  • Handle CRLF / CR line endings in end-of-file-fixer

Docs

  • Clarify and document arguments for detect-aws-credentials
  • Clarify autopep8-wrapper is deprecated in description

pre-commit-hooks v2.0.0

13 Oct 02:58
Compare
Choose a tag to compare

Breaking changes

Docs

  • Correct documentation for no-commit-to-branch

Updating

  • Minimum supported version of pre-commit is now 0.15.0
  • Use autopep8 from pre-commit/mirrors-autopep8
  • To keep mardown hard linebreaks, for trailing-whitespace use args: [--markdown-linebreak-ext=md,markdown] (the previous default value)

pre-commit-hooks v1.4.0-1

27 Sep 18:19
b8c3b05
Compare
Choose a tag to compare

(Note: this is a tag-only release as no code changes occurred)

Fixes

pre-commit-hooks v1.4.0

22 Jul 16:39
Compare
Choose a tag to compare

Features

Fixes

Misc

pre-commit-hooks v1.3.0

28 May 17:39
Compare
Choose a tag to compare

Features

  • Add an --unsafe argument to check-yaml to allow custom yaml tags
  • Automatically remove pkg-resources==0.0.0 in requirements-txt-fixer
  • Detect breakpoint() (python3.7+) in debug-statements hook.
  • Detect sshcom and putty hooks in detect-private-key

Fixes

  • Open files as UTF-8 (autopep8-wrapper, check-docstring-first, double-quote-string-fixer)
  • Fix AttributeError in check-builtin-literals for some functions

pre-commit-hooks v1.2.3

28 Feb 17:16
Compare
Choose a tag to compare

Fixes

pre-commit-hooks v1.2.2

28 Feb 17:04
Compare
Choose a tag to compare

Fixes

pre-commit-hooks v1.2.1-1

24 Feb 17:41
Compare
Choose a tag to compare

(Note: this is a tag-only release as no code changes occurred)

Fixes: