Pre-commit-hooks

Latest version: v5.0.0

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

Scan your dependencies

Page 1 of 10

5.0.0

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

Features
- `requirements-txt-fixer`: also remove `pkg_resources==...`.
- 850 PR by ericfrederich.
- 1030 issue by ericfrederich.
- `check-illegal-windows-names`: new hook!
- 1044 PR by ericfrederich.
- 589 issue by ericfrederich.
- 1049 PR by Jeffrey-Lim.
- `pretty-format-json`: continue processing even if a file has a json error.
- 1039 PR by amarvin.
- 1038 issue by amarvin.

Fixes
- `destroyed-symlinks`: set `stages` to `[pre-commit, pre-push, manual]`
- PR 1085 by AdrianDC.

Migrating
- pre-commit-hooks now requires `pre-commit>=3.2.0`.
- use non-deprecated names for `stages`.
- 1093 PR by asottile.

4.6.0

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

Features
- `requirements-txt-fixer`: remove duplicate packages.
- 1014 PR by vhoulbreque-withings.
- 960 issue csibe17.

Migrating
- `fix-encoding-pragma`: deprecated -- will be removed in 5.0.0. use
[pyupgrade](https://github.com/asottile/pyupgrade) or some other tool.
- 1033 PR by mxr.
- 1032 issue by mxr.

4.5.0

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

Features
- `requirements-txt-fixer`: also sort `constraints.txt` by default.
- 857 PR by lev-blit.
- 830 issue by PLPeeters.
- `debug-statements`: add `bpdb` debugger.
- 942 PR by mwip.
- 941 issue by mwip.

Fixes
- `file-contents-sorter`: fix sorting an empty file.
- 944 PR by RoelAdriaans.
- 935 issue by paduszyk.
- `double-quote-string-fixer`: don't rewrite inside f-strings in 3.12+.
- 973 PR by asottile.
- 971 issue by XuehaiPan.

Migrating
- now requires python >= 3.8.
- 926 PR by asottile.
- 927 PR by asottile.

4.4.0

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

Features
- `forbid-submodules`: new hook which outright bans submodules.
- 815 PR by asottile.
- 707 issue by ChiefGokhlayeh.

4.3.0

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

Features
- `check-executables-have-shebangs`: use `git config core.fileMode` to
determine if it should query `git`.
- 730 PR by Kurt-von-Laven.
- `name-tests-test`: add `--pytest-test-first` test convention.
- 779 PR by asottile.

Fixes
- `check-shebang-scripts-are-executable`: update windows instructions.
- 774 PR by mdeweerd.
- 770 issue by mdeweerd.
- `check-toml`: use stdlib `tomllib` when available.
- 771 PR by DanielNoord.
- 755 issue by sognetic.
- `check-added-large-files`: don't run on non-file `stages`.
- 778 PR by asottile.
- 777 issue by skyj.

4.2.0

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

Features
- `name-tests-test`: updated display text.
- 713 PR by asottile.
- `check-docstring-first`: make output more parsable.
- 748 PR by asottile.
- `check-merge-conflict`: make output more parsable.
- 748 PR by asottile.
- `debug-statements`: make output more parsable.
- 748 PR by asottile.

Fixes
- `check-merge-conflict`: fix detection of `======` conflict marker on windows.
- 748 PR by asottile.

Updating
- Drop python<3.7.
- 719 PR by asottile.
- Changed default branch from `master` to `main`.
- 744 PR by asottile.

Page 1 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.