Pre-commit

Latest version: v4.0.1

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

Scan your dependencies

Page 14 of 33

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.

1.11.1

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

Fixes
- Fix `.git` dir detection in `git<2.5` (regression introduced in
[1.10.5](1105))
- 831 issue by mmacpherson.
- 832 PR by asottile.

1.11.0

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

Features
- Add new `fail` language which always fails
- light-weight way to forbid files by name.
- 812 821 PRs by asottile.

Fixes
- Fix `ResourceWarning`s for unclosed files
- 811 PR by BoboTiG.
- Don't write ANSI colors on windows when color enabling fails
- 819 PR by jeffreyrack.

1.10.5

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

Fixes
- Work around `PATH` issue with `brew` `python` on `macos`
- Homebrew/homebrew-core30445 issue by asottile.
- 805 PR by asottile.
- Support `pre-commit install` inside a worktree
- 808 issue by s0undt3ch.
- 809 PR by asottile.

Page 14 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.