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

2.3.0

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

Features
- Calculate character width using `east_asian_width`
- 1378 PR by sophgn.
- Use `language_version: system` by default for `node` hooks if `node` / `npm`
are globally installed.
- 1388 PR by asottile.

Fixes
- No longer use a hard-coded user id for docker hooks on windows
- 1371 PR by killuazhu.
- Fix colors on windows during `git commit`
- 1381 issue by Cielquan.
- 1382 PR by asottile.
- Produce readable error message for incorrect argument count to `hook-impl`
- 1394 issue by pip9ball.
- 1395 PR by asottile.
- Fix installations which involve an upgrade of `pip` on windows
- 1398 issue by xiaohuazi123.
- 1399 PR by asottile.
- Preserve line endings in `pre-commit autoupdate`
- 1402 PR by utek.

2.2.0

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

Features
- Add support for the `post-checkout` hook
- 1120 issue by domenkozar.
- 1339 PR by andrewhare.
- Add more readable `--from-ref` / `--to-ref` aliases for `--source` /
`--origin`
- 1343 PR by asottile.

Fixes
- Make sure that `--commit-msg-filename` is passed for `commit-msg` /
`prepare-commit-msg`.
- 1336 PR by particledecay.
- 1341 PR by particledecay.
- Fix crash when installation error is un-decodable bytes
- 1358 issue by Guts.
- 1359 PR by asottile.
- Fix python `healthy()` check when `python` executable goes missing.
- 1363 PR by asottile.
- Fix crash when script executables are missing shebangs.
- 1350 issue by chriselion.
- 1364 PR by asottile.

Misc.
- pre-commit now requires python>=3.6.1 (previously 3.6.0)
- 1346 PR by asottile.

2.1.1

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

Fixes
- Temporarily restore python 3.6.0 support (broken in 2.0.0)
- reported by obestwalter.
- 081f3028 by asottile.

2.1.0

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

Features
- Replace `aspy.yaml` with `sort_keys=False`.
- 1306 PR by asottile.
- Add support for `perl`.
- 1303 PR by scop.

Fixes
- Improve `.git/hooks/*` shebang creation when pythons are in `/usr/local/bin`.
- 1312 issue by kbsezginel.
- 1319 PR by asottile.

Misc.
- Add repository badge for pre-commit.
- [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
- 1334 PR by ddelange.

2.0.1

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

Fixes
- Fix `ImportError` in python 3.6.0 / 3.6.1 for `typing.NoReturn`.
- 1302 PR by asottile.

2.0.0

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

Features
- Expose `PRE_COMMIT_REMOTE_NAME` and `PRE_COMMIT_REMOTE_URL` as environment
variables during `pre-push` hooks.
- 1274 issue by dmbarreiro.
- 1288 PR by dmbarreiro.

Fixes
- Fix `python -m pre_commit --version` to mention `pre-commit` instead of
`__main__.py`.
- 1273 issue by ssbarnea.
- 1276 PR by orcutt989.
- Don't filter `GIT_SSL_NO_VERIFY` from environment when cloning.
- 1293 PR by schiermike.
- Allow `pre-commit init-templatedir` to succeed even if `core.hooksPath` is
set.
- 1298 issue by damienrj.
- 1299 PR by asottile.

Misc
- Fix changelog date for 1.21.0.
- 1275 PR by flaudisio.

Updating
- Removed `pcre` language, use `pygrep` instead.
- 1268 PR by asottile.
- Removed `--tags-only` argument to `pre-commit autoupdate` (it has done
nothing since 0.14.0).
- 1269 by asottile.
- Remove python2 / python3.5 support. Note that pre-commit still supports
running hooks written in python2, but pre-commit itself requires python 3.6+.
- 1260 issue by asottile.
- 1277 PR by asottile.
- 1281 PR by asottile.
- 1282 PR by asottile.
- 1287 PR by asottile.
- 1289 PR by asottile.
- 1292 PR by asottile.

Page 10 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.