Pre-commit

Latest version: v4.0.1

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

Scan your dependencies

Page 18 of 33

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.

1.1.2

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

Fixes
- pre-commit can successfully install commit-msg hooks
- Due to an oversight, the commit-msg-tmpl was missing from the packaging
- 623 issue by sobolevn.
- 624 PR by asottile.

1.1.1

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

Features
- pre-commit also checks the `ssl` module for virtualenv health
- Suggestion by merwok.
- 619 PR by asottile.
Fixes
- pre-commit no longer crashes with unstaged files when run for the first time
- 620 621 issue by Lucas-C.
- 622 PR by asottile.

1.1.0

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

Features
- pre-commit configuration gains a `fail_fast` option.
- You must be using the v2 configuration format introduced in 1.0.0.
- `fail_fast` defaults to `false`.
- 240 issue by Lucas-C.
- 616 PR by asottile.
- pre-commit configuration gains a global `exclude` option.
- This option takes a python regular expression and can be used to exclude
files from _all_ hooks.
- You must be using the v2 configuration format introduced in 1.0.0.
- 281 issue by asieira.
- 617 PR by asottile.

Page 18 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.