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 9 of 33

2.7.1

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

Fixes
- Improve performance of docker hooks by removing slow `ps` call
- 1572 PR by rkm.
- 1569 issue by asottile.
- Fix un-`healthy()` invalidation followed by install being reported as
un-`healthy()`.
- 1576 PR by asottile.
- 1575 issue by jab.
- Fix rare file race condition on windows with `os.replace()`
- 1577 PR by asottile.

2.7.0

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

Features
- Produce error message if an environment is immediately unhealthy
- 1535 PR by asottile.
- Add --no-allow-missing-config option to init-templatedir
- 1539 PR by singergr.
- Add warning for old list-style configuration
- 1544 PR by asottile.
- Allow pre-commit to succeed on a readonly store.
- 1570 PR by asottile.
- 1536 issue by asottile.

Fixes
- Fix error messaging when the store directory is readonly
- 1546 PR by asottile.
- 1536 issue by asottile.
- Improve `diff` performance with many hooks
- 1566 PR by jhenkens.
- 1564 issue by jhenkens.

2.6.0

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

Fixes
- Fix node hooks when `NPM_CONFIG_USERCONFIG` is set
- 1521 PR by asottile.
- 1516 issue by rkm.

Features
- Skip `rbenv` / `ruby-download` if system ruby is available
- 1509 PR by asottile.
- Partial support for ruby on windows (if system ruby is installed)
- 1509 PR by asottile.
- 201 issue by asottile.

2.5.1

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

Fixes
- Prevent infinite recursion of post-checkout on clone
- 1497 PR by asottile.
- 1496 issue by admorgan.

2.5.0

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

Features
- Expose a `PRE_COMMIT=1` environment variable when running hooks
- 1467 PR by tech-chad.
- 1426 issue by lorenzwalthert.

Fixes
- Fix `UnicodeDecodeError` on windows when using the `py` launcher to detect
executables with non-ascii characters in the path
- 1474 PR by asottile.
- 1472 issue by DrFobos.
- Fix `DeprecationWarning` on python3.9 for `random.shuffle` method
- 1480 PR by asottile.
- 1479 issue by isidentical.
- Normalize slashes earlier such that global `files` / `exclude` use forward
slashes on windows as well.
- 1494 PR by asottile.
- 1476 issue by harrybiddle.

2.4.0

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

Features
- Add support for `post-commit` hooks
- 1415 PR by ModischFabrications.
- 1411 issue by ModischFabrications.
- Silence pip version warning in python installation error
- 1412 PR by asottile.
- Improve python `healthy()` when upgrading operating systems.
- 1431 PR by asottile.
- 1427 issue by ahonnecke.
- `language: python_venv` is now an alias to `language: python` (and will be
removed in a future version).
- 1431 PR by asottile.
- Speed up python `healthy()` check.
- 1431 PR by asottile.
- `pre-commit autoupdate` now tries to maintain quoting style of `rev`.
- 1435 PR by marcjay.
- 1434 issue by marcjay.

Fixes
- Fix installation of go modules in `repo: local`.
- 1428 PR by scop.
- Fix committing with unstaged files and a failing `post-checkout` hook.
- 1422 PR by domodwyer.
- 1418 issue by domodwyer.
- Fix installation of node hooks with system node installed on freebsd.
- 1443 PR by asottile.
- 1440 issue by jockej.
- Fix ruby hooks when `GEM_PATH` is set globally.
- 1442 PR by tdeo.
- Improve error message when `pre-commit autoupdate` /
`pre-commit migrate-config` are run but the pre-commit configuration is not
valid yaml.
- 1448 PR by asottile.
- 1447 issue by rpdelaney.

Page 9 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.