Skip to content

Releases: pre-commit/pre-commit-hooks

pre-commit-hooks v3.3.0

20 Oct 17:18
Compare
Choose a tag to compare

Features

  • file-contents-sorter: add --ignore-case option for case-insensitive sorting
  • check-added-large-files: add --enforce-all option to check non-added files as well
  • fix-byte-order-marker: new hook which fixes UTF-8 byte-order marker.

Deprecations

  • check-byte-order-marker is now deprecated for fix-byte-order-marker

pre-commit-hooks v3.2.0

30 Jul 20:34
Compare
Choose a tag to compare

Features

  • debug-statements: add support for pydevd_pycharm debugger

Fixes

  • check-executables-have-shebangs: fix git-quoted files on windows (spaces, non-ascii, etc.)

pre-commit-hooks v3.1.0

20 May 16:13
Compare
Choose a tag to compare

Features

  • check-executables-have-shebangs: on windows, validate the mode bits using git
  • requirements-txt-fixer: support more operators

Fixes

pre-commit-hooks v3.0.1

20 May 16:12
Compare
Choose a tag to compare

Fixes

pre-commit-hooks v3.0.0

20 May 16:12
Compare
Choose a tag to compare

Features

Fixes

Updating

pre-commit-hooks v2.5.0

05 Feb 00:11
Compare
Choose a tag to compare

Fixes

Updating

  • Use flake8 from pycqa/flake8 instead:

    -   repo: https://gitlab.com/pycqa/flake8
        rev: 3.7.9
        hooks:
        -   id: flake8

pre-commit-hooks v2.4.0

28 Oct 22:25
Compare
Choose a tag to compare

Features

  • Add diff output to pretty-format-json when run without --autofix.
  • Add --chars option to trailing-whitespace fixer to control which characters are stripped instead of all whitespace.

Fixes

pre-commit-hooks v2.3.0

05 Aug 17:34
Compare
Choose a tag to compare

Features

Fixes

  • Add __main__ block to pre_commit.file_contents_sorter so it can be invoked using python -m

Misc.

pre-commit-hooks v2.2.3

16 May 16:59
Compare
Choose a tag to compare

Fixes

pre-commit-hooks v2.2.2

15 May 17:18
Compare
Choose a tag to compare

Fixes

  • Handle CRLF line endings in fix-encoding-pragma