Very simple human-friendlier wrapper around pre-commit
Project description
pre-commit-tool
A simple wrapper around some [pre-commit][] commands that remembers some needed arguments for you, and that provides some abbreviations and friendly aliases.
Contents
Commands
Command | Description |
---|---|
help | Print help |
install | Install pre-commit hooks using pre-commit install-hooks ... |
run | Run pre-commit hooks using pre-commit run-hooks ... |
sync | Sync and garbage-collect pre-commit hooks |
update | Update pre-commit hooks using pre-commit autoupdate ... |
upgrade | Alias for update |
use | "Use" (install) the pre-commit tool with uv tool install ... |
validate | Validate the pre-commit config file |
Any command can be given with or without a leading --
(that is, --help
is the same as help
).
Most commands take additional arguments that get passed on to pre-commit
.
Most commands require a '.pre-commit-config.yaml' to be present.
Installation
Use your favorite way of installing Python packages. It's really easy with [uv][uv-install]):
uv tool install pre-commit-tool
uvx pre-commit-tool help
You can also add this package as a development dependency to a uv
-managed project:
uv add --dev pre-commit-tool
uv run pre-commit-tool help
Contributing
See DEVELOPING.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pre_commit_tool-0.1.8.tar.gz
.
File metadata
- Download URL: pre_commit_tool-0.1.8.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0e05ec8a82e4b54612ca312632d99209c622964f26869be40081fb3c960c760 |
|
MD5 | 01c40ecc79a9bf090bf564c6eb43c14c |
|
BLAKE2b-256 | 401fa88a330f3f13acf649a67586dd44d9039f47177657ed808ad4cee292cb12 |
Provenance
The following attestation bundles were made for pre_commit_tool-0.1.8.tar.gz
:
Publisher:
build.yaml
on jmknoble/pre-commit-tool
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pre_commit_tool-0.1.8.tar.gz
- Subject digest:
b0e05ec8a82e4b54612ca312632d99209c622964f26869be40081fb3c960c760
- Sigstore transparency entry: 149307477
- Sigstore integration time:
- Predicate type:
File details
Details for the file pre_commit_tool-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: pre_commit_tool-0.1.8-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78ac43d27ce6890059682ab4dd0ee92752cd9af41d9529d94bf68d7145c6f437 |
|
MD5 | 0c401d2d114af1f5ad8d1e72ebe8e655 |
|
BLAKE2b-256 | f68ab66d9c88de5e6df6c9fa6c0265f6e095e7a7e08f5c05a221aebc7d626d41 |
Provenance
The following attestation bundles were made for pre_commit_tool-0.1.8-py3-none-any.whl
:
Publisher:
build.yaml
on jmknoble/pre-commit-tool
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pre_commit_tool-0.1.8-py3-none-any.whl
- Subject digest:
78ac43d27ce6890059682ab4dd0ee92752cd9af41d9529d94bf68d7145c6f437
- Sigstore transparency entry: 149307478
- Sigstore integration time:
- Predicate type: