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
pre_commit_tool-0.1.3.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for pre_commit_tool-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae2e948070342d255a1e142f2bd519ec1646e7763c9c5369572afc11d64bbb4a |
|
MD5 | 30767320687b8eeb9ce18d151b1e643e |
|
BLAKE2b-256 | 8b34a38c55bb0e38313ead4ce8d7fb480d99842b68370cef8b0dda4b856e45da |