Skip to main content

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

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.3.tar.gz (3.1 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.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: t_run-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 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.3.tar.gz
Algorithm Hash digest
SHA256 1f4e2d9dba697cf610d390fd421496517375ed4581c17624e2b8d791f77557de
MD5 47f223437d60287a4d04b3c7cb0f7857
BLAKE2b-256 44f102d9e10e69dde822ae66be15cf4f7a75cf1040b91f7f0cb91035d4da075a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: t_run-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41854b1eeb8c3a0968aad4e9c7ab0fce7b05c2ce4ca9e6faf4fc51fbcd179e01
MD5 6c55c3e591ef13dfdeb092b324ba203d
BLAKE2b-256 4b61f449de05f71956885b8654d268209afeef8249b3b3ffaa42a2ef9c353107

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

0.0.4

2 files

This release

0.0.3 This release

2 files

0.0.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page