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
- 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 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
This project uses:
uv
for project create/init, dependency management, virtual environment managementruff
for linting and auto-formattingpre-commit
for automatically running linting/formatting/etc. at pre-commit timebumpver
for automatically bumping version numbers (and tagging, etc.)editorconfig
for setting indent, end-of-line, etc. for many editors/IDEs
References
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.7.tar.gz
.
File metadata
- Download URL: pre_commit_tool-0.1.7.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a4c62d16aa16d7b3d1043364ae740a35380f70c762e01d861c1dc1469930597 |
|
MD5 | 043757f83e34678a1db92d4605d0c374 |
|
BLAKE2b-256 | ebb33cc5ec524cc55a717b3c66d78fdcfd9553938f20b4ad7ce0510727ad1fda |
Provenance
The following attestation bundles were made for pre_commit_tool-0.1.7.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.7.tar.gz
- Subject digest:
1a4c62d16aa16d7b3d1043364ae740a35380f70c762e01d861c1dc1469930597
- Sigstore transparency entry: 147410400
- Sigstore integration time:
- Predicate type:
File details
Details for the file pre_commit_tool-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: pre_commit_tool-0.1.7-py3-none-any.whl
- Upload date:
- Size: 7.1 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 | 8a465eeece10d5ef298f6ded38ec06f96ee0895991856a629c883983b1d2aa41 |
|
MD5 | 5505b70f9b23120b614600e6d47bd334 |
|
BLAKE2b-256 | b78bb53f85ec7f7366128ff2aa35a81f7870101c38d0662615c017fc814f4577 |
Provenance
The following attestation bundles were made for pre_commit_tool-0.1.7-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.7-py3-none-any.whl
- Subject digest:
8a465eeece10d5ef298f6ded38ec06f96ee0895991856a629c883983b1d2aa41
- Sigstore transparency entry: 147410401
- Sigstore integration time:
- Predicate type: