Pre Commit Versions Save

A framework for managing and maintaining multi-language pre-commit hooks.

v3.7.0

1 month ago

Features

  • Use a tty for docker and docker_image hooks when --color is specified.
    • #3122 PR by @glehmann.

Fixes

  • Fix fail_fast for individual hooks stopping when previous hooks had failed.
    • #3167 issue by @tp832944.
    • #3168 PR by @asottile.

Updating

  • The per-hook behaviour of fail_fast was fixed. If you want the pre-3.7.0 behaviour, add fail_fast: true to all hooks before the last fail_fast hook.

v3.6.2

2 months ago

Fixes

  • Fix building golang hooks during git commit --all.
    • #3130 PR by @asottile.
    • #2722 issue by @pestanko and @matthewhughes934.

v3.6.1

2 months ago

Fixes

  • Remove PYTHONEXECUTABLE from environment when running.
    • #3110 PR by @untitaker.
  • Handle staged-files-only with only a crlf diff.
    • #3126 PR by @asottile.
    • issue by @tyyrok.

v3.6.0

4 months ago

Features

  • Check minimum_pre_commit_version first when parsing configs.
    • #3092 PR by @asottile.

Fixes

  • Fix deprecation warnings for importlib.resources.
    • #3043 PR by @asottile.
  • Fix deprecation warnings for rmtree.
    • #3079 PR by @edgarrmondragon.

Updating

  • Drop support for python<3.9.
    • #3042 PR by @asottile.
    • #3093 PR by @asottile.

v3.5.0

6 months ago

Features

  • Improve performance of check-hooks-apply and check-useless-excludes.
    • #2998 PR by @mxr.
    • #2935 issue by @mxr.

Fixes

  • Use time.monotonic() for more accurate hook timing.
    • #3024 PR by @adamchainz.

Migrating

  • Require npm 6.x+ for language: node hooks.
    • #2996 PR by @RoelAdriaans.
    • #1983 issue by @henryiii.

v3.4.0

8 months ago

Features

  • Add language: haskell.
    • #2932 by @alunduil.
  • Improve cpu count detection when run under cgroups.
    • #2979 PR by @jdb8.
    • #2978 issue by @jdb8.

Fixes

  • Handle negative exit codes from hooks receiving posix signals.
    • #2971 PR by @chriskuehl.
    • #2970 issue by @chriskuehl.

v3.3.3

10 months ago

Fixes

  • Work around OS packagers setting --install-dir / --bin-dir in gem settings.
    • #2905 PR by @jaysoffian.
    • #2799 issue by @lmilbaum.

v3.3.2

11 months ago

Fixes

  • Work around r on windows sometimes double-un-quoting arguments.
    • #2885 PR by @lorenzwalthert.
    • #2870 issue by @lorenzwalthert.

v3.3.1

1 year ago

Fixes

  • Work around git partial clone bug for autoupdate on windows.
    • #2866 PR by @asottile.
    • #2865 issue by @adehad.

v3.3.0

1 year ago

Features

  • Upgrade ruby-build.
    • #2846 PR by @jalessio.
  • Use blobless clone for faster autoupdate.
    • #2859 PR by @asottile.
  • Add -j / --jobs argument to autoupdate for parallel execution.
    • #2863 PR by @asottile.
    • issue by @gaborbernat.