Skip to main content

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


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.8.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

pre_commit_tool-0.1.8-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for pre_commit_tool-0.1.8.tar.gz
Algorithm Hash digest
SHA256 b0e05ec8a82e4b54612ca312632d99209c622964f26869be40081fb3c960c760
MD5 01c40ecc79a9bf090bf564c6eb43c14c
BLAKE2b-256 401fa88a330f3f13acf649a67586dd44d9039f47177657ed808ad4cee292cb12

See more details on using hashes here.

Provenance

The following attestation bundles were made for pre_commit_tool-0.1.8.tar.gz:

Publisher: build.yaml on jmknoble/pre-commit-tool

Attestations:

File details

Details for the file pre_commit_tool-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for pre_commit_tool-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 78ac43d27ce6890059682ab4dd0ee92752cd9af41d9529d94bf68d7145c6f437
MD5 0c401d2d114af1f5ad8d1e72ebe8e655
BLAKE2b-256 f68ab66d9c88de5e6df6c9fa6c0265f6e095e7a7e08f5c05a221aebc7d626d41

See more details on using hashes here.

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page