Pre-commit

Latest version: v3.7.1

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

Scan your dependencies

Page 13 of 33

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.

1.13.0

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

Features
- Run hooks in parallel
- individual hooks may opt out of parallel execution with `require_serial: true`
- 510 issue by chriskuehl.
- 851 PR by chriskuehl.

Fixes
- Improve platform-specific `xargs` command length detection
- 691 issue by antonbabenko.
- 839 PR by georgeyk.
- Fix `pre-commit autoupdate` when updating to a latest tag missing a
`.pre-commit-hooks.yaml`
- 856 issue by asottile.
- 857 PR by runz0rd.
- Upgrade the `pre-commit-hooks` version in `pre-commit sample-config`
- 870 by asottile.
- Improve balancing of multiprocessing by deterministic shuffling of args
- 861 issue by Dunedan.
- 874 PR by chriskuehl.
- `ruby` hooks work with latest `gem` by removing `--no-ri` / `--no-rdoc` and
instead using `--no-document`.
- 889 PR by asottile.

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

Updating
- If a hook requires serial execution, set `require_serial: true` to avoid the new
parallel execution.
- `ruby` hooks now require `gem>=2.0.0`. If your platform doesn't support this
by default, select a newer version using
[`language_version`](https://pre-commit.com/#overriding-language-version).

1.12.0

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

Fixes
- Install multi-hook repositories only once (performance)
- issue by chriskuehl.
- 852 PR by asottile.
- Improve performance by factoring out pkg_resources (performance)
- 840 issue by RonnyPfannschmidt.
- 846 PR by asottile.

1.11.2

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

Fixes
- `check-useless-exclude` now considers `types`
- 704 issue by asottile.
- 837 PR by georgeyk.
- `pre-push` hook was not identifying all commits on push to new branch
- 843 issue by prem-nuro.
- 844 PR by asottile.

Page 13 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.