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.1.0
    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.1a0.tar.gz (2.4 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.1a0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file t_run-0.0.1a0.tar.gz.

File metadata

  • Download URL: t_run-0.0.1a0.tar.gz
  • Upload date:
  • Size: 2.4 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.1a0.tar.gz
Algorithm Hash digest
SHA256 717229f8179a04cb857e1d7ababd81b31a8fa6efac6f3cdf1e0abd3be0e2691b
MD5 9f33de24fabf3a4267f16a952feadf9a
BLAKE2b-256 f5585f7828f0ff37148ee86855ba91cf782dbcb877e2dcc749f6053d1a8eb1bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for t_run-0.0.1a0.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.1a0-py3-none-any.whl.

File metadata

  • Download URL: t_run-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 579f7abca70f5707c8c7db6ce2b7657d46044434e2f37ac4fc31f74bb19ac356
MD5 9e01c7673cfeff70480359f35bce6a13
BLAKE2b-256 b524faf8fd1b38731843bee61a3bb0f0fa93e484f1e8712f498cabd214422190

See more details on using hashes here.

Provenance

The following attestation bundles were made for t_run-0.0.1a0-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