Pre-commit

Latest version: v3.7.1

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

Scan your dependencies

Page 17 of 33

1.4.3

Not secure
==================

Fixes
- `pre-commit` on windows can find pythons at non-hardcoded paths.
- 674 PR by asottile.

1.4.2

Not secure
==================

Fixes
- `pre-commit` no longer clears `GIT_SSH` environment variable when cloning.
- 671 PR by rp-tanium.

1.4.1

Not secure
==================

Fixes
- `pre-commit autoupdate --repo ...` no longer deletes other repos.
- 660 issue by KevinHock.
- 661 PR by KevinHock.

1.4.0

Not secure
==================

Features
- Lazily install repositories.
- When running `pre-commit run <hookid>`, pre-commit will only install
the necessary repositories.
- 637 issue by webknjaz.
- 639 PR by asottile.
- Version defaulting now applies to local hooks as well.
- This extends 556 to apply to local hooks.
- 646 PR by asottile.
- Add new `repo: meta` hooks.
- `meta` hooks expose some linters of the pre-commit configuration itself.
- `id: check-useless-excludes`: ensures that `exclude` directives actually
apply to *any* file in the repository.
- `id: check-hooks-apply`: ensures that the configured hooks apply to
at least one file in the repository.
- pre-commit/pre-commit-hooks63 issue by asottile.
- 405 issue by asottile.
- 643 PR by hackedd.
- 653 PR by asottile.
- 654 PR by asottile.
- Allow a specific repository to be autoupdated instead of all repositories.
- `pre-commit autoupdate --repo ...`
- 656 issue by KevinHock.
- 657 PR by KevinHock.

Fixes
- Apply selinux labelling option to docker volumes
- 642 PR by jimmidyson.

1.3.0

Not secure
==================

Features
- Add `pre-commit try-repo` commands
- The new `try-repo` takes a repo and will run the hooks configured in
that hook repository.
- An example invocation:
`pre-commit try-repo https://github.com/pre-commit/pre-commit-hooks`
- `pre-commit try-repo` can also take all the same arguments as
`pre-commit run`.
- It can be used to try out a repository without needing to configure it.
- It can also be used to test a hook repository while developing it.
- 589 issue by sverhagen.
- 633 PR by asottile.

1.2.0

Not secure
==================

Features
- Add `pygrep` language
- `pygrep` aims to be a more cross-platform alternative to `pcre` hooks.
- 630 PR by asottile.

Fixes
- Use `pipes.quote` for executable path in hook template
- Fixes bash syntax error when git dir contains spaces
- 626 PR by asottile.
- Clean up hook template
- Simplify code
- Fix `--config` not being respected in some situations
- 627 PR by asottile.
- Use `file://` protocol for cloning under test
- Fix `file://` clone paths being treated as urls for golang
- 629 PR by asottile.
- Add `ctypes` as an import for virtualenv healthchecks
- Fixes python3.6.2 <=> python3.6.3 virtualenv invalidation
- e70825ab by asottile.

Page 17 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.