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

1.21.0

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

Features
- Add `conda` as a new `language`.
- 1204 issue by xhochy.
- 1232 PR by xhochy.
- Add top-level configuration `files` for file selection.
- 1220 issue by TheButlah.
- 1248 PR by asottile.
- Rework `--verbose` / `verbose` to be more consistent with normal runs.
- 1249 PR by asottile.
- Add support for the `pre-merge-commit` git hook.
- 1210 PR by asottile.
- this requires git 2.24+.
- Add `pre-commit autoupdate --freeze` which produces "frozen" revisions.
- 1068 issue by SkypLabs.
- 1256 PR by asottile.
- Display hook runtime duration when run with `--verbose`.
- 1144 issue by potiuk.
- 1257 PR by asottile.

Fixes
- Produce better error message when erroneously running inside of `.git`.
- 1219 issue by Nusserdt.
- 1224 PR by asottile.
- Note: `git` has since fixed this bug: git/git36fd304d
- Produce better error message when hook installation fails.
- 1250 issue by asottile.
- 1251 PR by asottile.
- Fix cloning when `GIT_SSL_CAINFO` is necessary.
- 1253 issue by igankevich.
- 1254 PR by igankevich.
- Fix `pre-commit try-repo` for bare, on-disk repositories.
- 1258 issue by webknjaz.
- 1259 PR by asottile.
- Add some whitespace to `pre-commit autoupdate` to improve terminal autolink.
- 1261 issue by yhoiseth.
- 1262 PR by yhoiseth.

Misc.
- Minor code documentation updates.
- 1200 PR by ryanrhee.
- 1201 PR by ryanrhee.

1.20.0

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

Features
- Allow building newer versions of `ruby`.
- 1193 issue by choffee.
- 1195 PR by choffee.
- Bump versions reported in `pre-commit sample-config`.
- 1197 PR by asottile.

Fixes
- Fix rare race condition with multiple concurrent first-time runs.
- 1192 issue by raholler.
- 1196 PR by asottile.

1.19.0

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

Features
- Allow `--hook-type` to be specified multiple times.
- example: `pre-commit install --hook-type pre-commit --hook-type pre-push`
- 1139 issue by MaxymVlasov.
- 1145 PR by asottile.
- Include more version information in crash logs.
- 1142 by marqueewinq.
- Hook colors are now passed through on platforms which support `pty`.
- 1169 by asottile.
- pre-commit now uses `importlib.metadata` directly when running in python 3.8
- 1176 by asottile.
- Normalize paths to forward slash separators on windows.
- makes it easier to match paths with `files:` regex
- avoids some quoting bugs in shell-based hooks
- 1173 issue by steigenTI.
- 1179 PR by asottile.

Fixes
- Remove some extra newlines from error messages.
- 1148 by asottile.
- When a hook is not executable it now reports `not executable` instead of
`not found`.
- 1159 issue by nixjdm.
- 1161 PR by WillKoehrsen.
- Fix interleaving of stdout / stderr in hooks.
- 1168 by asottile.
- Fix python environment `healthy()` check when current working directory
contains modules which shadow standard library names.
- issue by vwhsu92.
- 1185 PR by asottile.

Updating
- Regexes handling both backslashes and forward slashes for directory
separators now only need to handle forward slashes.

1.18.3

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

Fixes
- Fix `node_modules` plugin installation on windows
- 1123 issue by henryykt.
- 1122 PR by henryykt.

1.18.2

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

Fixes
- Make default python lookup more deterministic to avoid redundant installs
- 1117 PR by scop.

1.18.1

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

Fixes
- Fix installation of `rust` hooks with new `cargo`
- 1112 issue by zimbatm.
- 1113 PR by zimbatm.

Page 11 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.