Skip to main content

Config dir aware CLI wrapper and pre-commit hook dispatcher

Project description

T-run (Tool Run)

Config-dir-aware CLI wrapper and pre-commit hook dispatcher.

Reads a config-dir setting from pyproject.toml and routes tools (ruff, black, isort, mypy, flake8, pylint) to look for their config files there, instead of the project root.

pyproject.toml

[tool]
config-dir = "config"   # default: "1_config"

Install

pipx install t-run # global

Usage

trun ruff check .
trun black .
trun mypy .
trun isort .
trun flake8 .
trun pylint *

Or without installing, from the repo root:

python -m trun ruff .

pre-commit

repos:
  - repo: https://github.com/rsb-23/trun
    rev: v0.0.2
    hooks:
      - id: ruff-check
      - id: ruff-format
      - id: black
      - id: isort
      - id: mypy

Only the hooks you list are installed — each pulls its own pinned dependency via additional_dependencies in .pre-commit-hooks.yaml.

Build

pip install build
git tag v0.1.0
python -m build

License

MIT

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

t_run-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

t_run-0.0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file t_run-0.0.2.tar.gz.

File metadata

  • Download URL: t_run-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for t_run-0.0.2.tar.gz
Algorithm Hash digest
SHA256 079cc2e2584bd234cd8dcd38bc51c68158d77c8e87ad071be37a070cca7f3d2f
MD5 a214a643ce78b95032e627145a4fb4eb
BLAKE2b-256 58e67a0ab68f0e5c37b05b334ec9c1462f44c6231effe3bd3c4e9186068eadc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for t_run-0.0.2.tar.gz:

Publisher: release.yml on rsb-23/trun

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file t_run-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: t_run-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for t_run-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e420c3a457ca4c2f09da2f2b2a177618714030e7b65c7f9aebb6cab9403c9b1
MD5 b9a1937c475024eab6502e7d058eaad0
BLAKE2b-256 65c369da822bdb2fc54c84d323cd1934da6d0620f44ff98746d9c6dc19baa1ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for t_run-0.0.2-py3-none-any.whl:

Publisher: release.yml on rsb-23/trun

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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