Skip to content

Releases: pre-commit/pre-commit

pre-commit v1.4.5

09 Jan 18:35
Compare
Choose a tag to compare

Fixes

  • Fix local golang repositories with additional_dependencies.

Misc

  • Replace some string literals with constants

pre-commit v1.4.4

08 Jan 05:29
Compare
Choose a tag to compare

Fixes

  • Invoke git diff without a pager during --show-diff-on-failure.

pre-commit v1.4.3

03 Jan 03:36
Compare
Choose a tag to compare

Fixes

  • pre-commit on windows can find pythons at non-hardcoded paths.

pre-commit v1.4.2

02 Jan 22:16
Compare
Choose a tag to compare

Fixes

  • pre-commit no longer clears GIT_SSH environment variable when cloning.

pre-commit v1.4.1

09 Nov 16:37
Compare
Choose a tag to compare

Fixes

pre-commit v1.4.0

08 Nov 20:08
Compare
Choose a tag to compare

Features

  • Lazily install repositories.
    • When running pre-commit run <hookid>, pre-commit will only install the necessary repositories.
    • #637 issue by @webknjaz.
    • #639 PR by @asottile.
  • Version defaulting now applies to local hooks as well.
  • Add new repo: meta hooks.
  • Allow a specific repository to be autoupdated instead of all repositories.

Fixes

pre-commit v1.3.0

08 Oct 22:09
Compare
Choose a tag to compare

Features

  • Add pre-commit try-repo commands
    • The new try-repo takes a repo and will run the hooks configured in that hook repository.
    • An example invocation:
      pre-commit try-repo https://github.com/pre-commit/pre-commit-hooks
    • pre-commit try-repo can also take all the same arguments as pre-commit run.
    • It can be used to try out a repository without needing to configure it.
    • It can also be used to test a hook repository while developing it.
    • #589 issue by @sverhagen.
    • #633 PR by @asottile.

pre-commit v1.2.0

04 Oct 04:20
Compare
Choose a tag to compare

Features

  • Add pygrep language
    • pygrep aims to be a more cross-platform alternative to pcre hooks.
    • #630 PR by @asottile.

Fixes

  • Use pipes.quote for executable path in hook template
    • Fixes bash syntax error when git dir contains spaces
    • #626 PR by @asottile.
  • Clean up hook template
    • Simplify code
    • Fix --config not being respected in some situations
    • #627 PR by @asottile.
  • Use file:// protocol for cloning under test
    • Fix file:// clone paths being treated as urls for golang
    • #629 PR by @asottile.
  • Add ctypes as an import for virtualenv healthchecks
    • Fixes python3.6.2 <=> python3.6.3 virtualenv invalidation
    • e70825a by @asottile.

pre-commit v1.1.2

20 Sep 12:52
Compare
Choose a tag to compare

Fixes

  • pre-commit can successfully install commit-msg hooks

pre-commit v1.1.1

18 Sep 00:08
Compare
Choose a tag to compare

Features

  • pre-commit also checks the ssl module for virtualenv health

Fixes