Pre-commit-hooks

Latest version: v5.0.0

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

Scan your dependencies

Page 4 of 10

2.2.3

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

Fixes
- Handle CRLF line endings in `double-quote-string-fixer`
- 385 issue by Trim21.
- 386 PR by asottile.

2.2.2

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

Fixes
- Handle CRLF line endings in `fix-encoding-pragma`
- 384 PR by asottile.

2.2.1

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

Fixes
- Use UTF-8 to load yaml files
- 377 issue by roottool.
- 378 PR by roottool.

2.2.0

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

Features
- Switch from `pyyaml` to `ruamel.yaml`
- This enforces (among other things) duplicate key checking in yaml.
- 351 PR by asottile.
- Add a new `--pattern` option to `no-commit-to-branch` for regex matching
branch names.
- 375 issue by marcjay.
- 376 PR by marcjay.

Fixes
- Set `require_serial: true` for flake8
- flake8 internally uses multiprocessing.
- 358 PR by asottile.
- Don't run `check-executables-have-shebangs` / `trailing-whitespace` hooks
during the `commit-msg` stage.
- 361 issue by revolter.
- 362 PR by revolter.
- Run `check-byte-order-marker` against `types: [text]`
- 371 PR by tobywf.
- 372 PR by tobywf.
- Do not require UTF-8-encoded files for `check-docstring-first`
- 345 issue by x007007007.
- 374 PR by asottile.

Misc.
- `pre-commit-hooks` now is type checked with mypy.
- 360 PR by asottile.

2.1.0

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

Features
- Detect PGP/GPG private keys in `detect-private-key`
- 329 PR by rpdelaney.
- Report filenames when fixing files in `mixed-line-endings`
- 341 PR by gimbo.
- 340 issuey by gimbo.

Fixes
- Handle CRLF / CR line endings in `end-of-file-fixer`
- 327 PR by mtkennerly.

Docs

- Clarify and document arguments for `detect-aws-credentials`
- 333 PR by rpdelaney.
- Clarify `autopep8-wrapper` is deprecated in description
- 343 PR by TheKevJames.

2.0.0

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

Breaking changes

- `autopep8-wrapper` has been moved to
[pre-commit/mirrors-autopep8][mirrors-autopep8]
- 92 issue by asottile.
- 319 issue by blaggacao.
- 321 PR by asottile.
- `trailing-whitespace` defaults to `--no-markdown-linebreak-ext`
- 310 issue by asottile.
- 324 PR by asottile.
- `hooks.yaml` (legacy pre-commit hook metadata) deleted
- 323 PR by asottile.
- pre-`types` compatibility metadata removed
- 323 PR asottile.

Docs

- Correct documentation for `no-commit-to-branch`
- 318 PR by milin.

Updating

- Minimum supported version of `pre-commit` is now 0.15.0
- Use `autopep8` from [pre-commit/mirrors-autopep8][mirrors-autopep8]
- To keep mardown hard linebreaks, for `trailing-whitespace` use
`args: [--markdown-linebreak-ext=md,markdown]` (the previous default value)

[mirrors-autopep8]: https://github.com/pre-commit/mirrors-autopep8

Page 4 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.