Pre-commit

Latest version: v3.7.1

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

Scan your dependencies

Page 18 of 33

1.1.2

Not secure
==================

Fixes
- pre-commit can successfully install commit-msg hooks
- Due to an oversight, the commit-msg-tmpl was missing from the packaging
- 623 issue by sobolevn.
- 624 PR by asottile.

1.1.1

Not secure
==================

Features
- pre-commit also checks the `ssl` module for virtualenv health
- Suggestion by merwok.
- 619 PR by asottile.
Fixes
- pre-commit no longer crashes with unstaged files when run for the first time
- 620 621 issue by Lucas-C.
- 622 PR by asottile.

1.1.0

Not secure
==================

Features
- pre-commit configuration gains a `fail_fast` option.
- You must be using the v2 configuration format introduced in 1.0.0.
- `fail_fast` defaults to `false`.
- 240 issue by Lucas-C.
- 616 PR by asottile.
- pre-commit configuration gains a global `exclude` option.
- This option takes a python regular expression and can be used to exclude
files from _all_ hooks.
- You must be using the v2 configuration format introduced in 1.0.0.
- 281 issue by asieira.
- 617 PR by asottile.

1.0.1

Not secure
==================

Fixes
- Fix a regression in the return code of `pre-commit autoupdate`
- `pre-commit migrate-config` and `pre-commit autoupdate` return 0 when
successful.
- 614 PR by asottile.

1.0.0

Not secure
==================
pre-commit will now be following [semver](https://semver.org/). Thanks to all
of the [contributors](https://github.com/pre-commit/pre-commit/graphs/contributors)
that have helped us get this far!

Features

- pre-commit's cache directory has moved from `~/.pre-commit` to
`$XDG_CACHE_HOME/pre-commit` (usually `~/.cache/pre-commit`).
- `pre-commit clean` now cleans up both the old and new directory.
- If you were caching this directory in CI, you'll want to adjust the
location.
- 562 issue by nagromc.
- 602 PR by asottile.
- A new configuration format for `.pre-commit-config.yaml` is introduced which
will enable future development.
- The new format has a top-level map instead of a top-level list. The
new format puts the hook repositories in a `repos` key.
- Old list-based configurations will continue to be supported.
- A command `pre-commit migrate-config` has been introduced to "upgrade"
the configuration format to the new map-based configuration.
- `pre-commit autoupdate` now automatically calls `migrate-config`.
- In a later release, list-based configurations will issue a deprecation
warning.
- An example diff for upgrading a configuration:

diff
+repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v0.9.2
hooks:

- 414 issue by asottile.
- 610 PR by asottile.

Updating

- Run `pre-commit migrate-config` to convert `.pre-commit-config.yaml` to the
new map format.
- Update any references from `~/.pre-commit` to `~/.cache/pre-commit`.

0.18.3

Not secure
===================
- Allow --config to affect `pre-commit install`
- Tweak not found error message during `pre-push` / `commit-msg`
- Improve node support when running under cygwin.

Page 18 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.