Skip to content

Releases: pre-commit/pre-commit

pre-commit v3.0.1

26 Jan 16:14
Compare
Choose a tag to compare

Fixes

  • Ensure coursier hooks are available offline after install.

pre-commit v3.0.0

24 Jan 01:44
Compare
Choose a tag to compare

Features

Fixes

Updating

  • Drop support for python<3.8
  • Drop support for top-level list, use pre-commit migrate-config to update.
  • Drop support for sha to specify revision, use pre-commit migrate-config to update.
  • Remove pre-commit-validate-config and pre-commit-validate-manifest, use pre-commit validate-config and pre-commit validate-manifest instead.
  • language: golang hooks must use go.mod to specify dependencies

pre-commit v2.21.0

25 Dec 22:55
Compare
Choose a tag to compare

Features

  • Require new-enough virtualenv to prevent 3.10 breakage
  • Respect aliases with SKIP for environment install.
  • Allow pre-commit run --files against unmerged paths.
  • Also apply regex warnings to repo: local hooks.
  • rust is now a "first class" language -- supporting language_version and installation when not present.
  • r now uses more-reliable binary installation.
  • GIT_ALLOW_PROTOCOL is now passed through for git operations.
  • GIT_ASKPASS is now passed through for git operations.
  • Remove toml dependency by using cargo add directly.
  • Support dotnet hooks which have dotted prefixes.

Fixes

pre-commit v2.20.0

11 Jul 00:58
Compare
Choose a tag to compare

Features

  • Expose source and object-name (positional args) of prepare-commit-msg hook as PRE_COMMIT_COMIT_MSG_SOURCE and PRE_COMMIT_COMMIT_OBJECT_NAME.

Fixes

  • Fix language: ruby installs when --user-install is set in gemrc.
  • Adjust pty setup for solaris.
  • Remove unused --config option from gc, sample-config, validate-config, validate-manifest sub-commands.

pre-commit v2.19.0

05 May 13:57
Compare
Choose a tag to compare

Features

  • Allow multiple outputs from language: dotnet hooks.
  • Add more information to healthy() failure.
  • Upgrade ruby-build.
  • Add pre-commit validate-config / pre-commit validate-manifest and deprecate pre-commit-validate-config and pre-commit-validate-manifest.

Fixes

Updating

  • Change pre-commit-validate-config / pre-commit-validate-manifest to pre-commit validate-config / pre-commit validate-manifest.

pre-commit v2.18.1

03 Apr 01:35
Compare
Choose a tag to compare

Fixes

  • Fix regression for repo: local hooks running python<3.7

pre-commit v2.18.0

02 Apr 23:39
Compare
Choose a tag to compare

Features

  • Keep GIT_HTTP_PROXY_AUTHMETHOD in git environ.
  • Support both cs and coursier executables for coursier hooks.
  • Include more information in errors for language_version / additional_dependencies for languages which do not support them.
  • Have autoupdate preferentially pick tags which look like versions when there are multiple equivalent tags.
  • Upgrade ruby-build.
  • Add top level default_install_hook_types which will be installed when --hook-types is not specified in pre-commit install.

Fixes

Updating

  • Remove python3.6 support. Note that pre-commit still supports running hooks written in older versions, but pre-commit itself requires python 3.7+.
  • pre-commit has migrated from the master branch to main.

pre-commit v2.17.0

18 Jan 18:42
Compare
Choose a tag to compare

Features

  • add warnings for regexes containing [\\/].
  • upgrade supported ruby versions.
  • allow language: conda to use mamba or micromamba via PRE_COMMIT_USE_MAMBA=1 or PRE_COMMIT_USE_MICROMAMBA=1 respectively.
  • display git --version in error report.
  • add language: lua as a supported language.

Fixes

pre-commit v2.16.0

30 Nov 23:21
Compare
Choose a tag to compare

Features

Fixes

pre-commit v2.15.0

03 Sep 00:45
Compare
Choose a tag to compare

Features

Fixes