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

  • 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 management
  • ruff for linting and auto-formatting
  • pre-commit for automatically running linting/formatting/etc. at pre-commit time
  • bumpver for automatically bumping version numbers (and tagging, etc.)
  • editorconfig for setting indent, end-of-line, etc. for many editors/IDEs

References

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

Uploaded Source

Built Distribution

pre_commit_tool-0.1.7-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for pre_commit_tool-0.1.7.tar.gz
Algorithm Hash digest
SHA256 1a4c62d16aa16d7b3d1043364ae740a35380f70c762e01d861c1dc1469930597
MD5 043757f83e34678a1db92d4605d0c374
BLAKE2b-256 ebb33cc5ec524cc55a717b3c66d78fdcfd9553938f20b4ad7ce0510727ad1fda

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for pre_commit_tool-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8a465eeece10d5ef298f6ded38ec06f96ee0895991856a629c883983b1d2aa41
MD5 5505b70f9b23120b614600e6d47bd334
BLAKE2b-256 b78bb53f85ec7f7366128ff2aa35a81f7870101c38d0662615c017fc814f4577

See more details on using hashes here.

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

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