Pre-commit

Latest version: v4.0.1

Safety actively analyzes 688053 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 13 of 33

1.15.0

===================

Features
- No longer require being in a `git` repo to run `pre-commit` `clean` / `gc` /
`sample-config`.
- 959 PR by asottile.
- Improve command line length limit detection.
- 691 issue by antonbabenko.
- 966 PR by asottile.
- Use shallow cloning when possible.
- 958 PR by DanielChabrowski.
- Add `minimum_pre_commit_version` top level key to require a new-enough
version of `pre-commit`.
- 977 PR by asottile.
- Add helpful CI-friendly message when running
`pre-commit run --all-files --show-diff-on-failure`.
- 982 PR by bnorquist.

Fixes
- Fix `try-repo` for staged untracked changes.
- 973 PR by DanielChabrowski.
- Fix rpm build by explicitly using `!/usr/bin/env python3` in hook template.
- 985 issue by tim77.
- 986 PR by tim77.
- Guard against infinite recursion when executing legacy hook script.
- 981 PR by tristan0x.

Misc
- Add test for `git.no_git_env()`
- 972 PR by javabrett.

1.14.4

===================

Fixes
- Don't filter `GIT_SSH_COMMAND` env variable from `git` commands
- 947 issue by firba1.
- 948 PR by firba1.
- Install npm packages as if they were installed from `git`
- 943 issue by ssbarnea.
- 949 PR by asottile.
- Don't filter `GIT_EXEC_PREFIX` env variable from `git` commands
- 664 issue by revolter.
- 944 PR by minrk.

1.14.3

===================

Fixes
- Improve performance of filename classification by 45% - 55%.
- 921 PR by asottile.
- Fix installing `go` hooks while `GOBIN` environment variable is set.
- 924 PR by ashanbrown.
- Fix crash while running `pre-commit migrate-config` / `pre-commit autoupdate`
with an empty configuration file.
- 929 issue by ardakuyumcu.
- 933 PR by jessebona.
- Require a newer virtualenv to fix metadata-based setup.cfg installs.
- 936 PR by asottile.

1.14.2

===================

Fixes
- Make the hook shebang detection more timid (1.14.0 regression)
- Homebrew/homebrew-core35825.
- 915 PR by asottile.

1.14.1

===================

Fixes
- Fix python executable lookup on windows when using conda
- 913 issue by dawelter2.
- 914 PR by asottile.

1.14.0

===================

Features
- Add an `alias` configuration value to allow repeated hooks to be
differentiated
- 882 issue by s0undt3ch.
- 886 PR by s0undt3ch.
- Add `identity` meta hook which just prints filenames
- 865 issue by asottile.
- 898 PR by asottile.
- Factor out `cached-property` and improve startup performance by ~10%
- 899 PR by asottile.
- Add a warning on unexpected keys in configuration
- 899 PR by asottile.
- Teach `pre-commit try-repo` to clone uncommitted changes on disk.
- 589 issue by sverhagen.
- 703 issue by asottile.
- 904 PR by asottile.
- Implement `pre-commit gc` which will clean up no-longer-referenced cache
repos.
- 283 issue by jtwang.
- 906 PR by asottile.
- Add top level config `default_language_version` to streamline overriding the
`language_version` configuration in many places
- 647 issue by asottile.
- 908 PR by asottile.
- Add top level config `default_stages` to streamline overriding the `stages`
configuration in many places
- 768 issue by mattlqx.
- 909 PR by asottile.

Fixes
- More intelligently pick hook shebang (`!/usr/bin/env python3`)
- 878 issue by fristedt.
- 893 PR by asottile.
- Several fixes related to `--files` / `--config`:
- `pre-commit run --files x` outside of a git dir no longer stacktraces
- `pre-commit run --config ./relative` while in a sub directory of the git
repo is now able to find the configuration
- `pre-commit run --files ...` no longer runs a subprocess per file
(performance)
- 895 PR by asottile.
- `pre-commit try-repo ./relative` while in a sub directory of the git repo is
now able to clone properly
- 903 PR by asottile.
- Ensure `meta` repos cannot have a language other than `system`
- 905 issue by asottile.
- 907 PR by asottile.
- Fix committing with unstaged files that were `git add --intent-to-add` added
- 881 issue by henniss.
- 912 PR by asottile.

Misc.
- Use `--no-gpg-sign` when running tests
- 894 PR by s0undt3ch.

Page 13 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.