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"

Quickstart

pipx install t-run # global
trun init
trun black .

Usage

To run individual commands

trun black .
trun pre-commit run
trun pylint *
trun ruff check .

To run command groups

Add groups of command in trun.toml and run using trun run

lint = ["pre-commit run --all-files"]
fix = ["ruff check --fix", "ruff format"]
trun run lint
trun run fix

pre-commit

repos:
  - repo: https://github.com/rsb-23/trun
    rev: v0.0.4
    hooks:
      - id: black
      - id: isort
      - id: flake8
      - id: ...

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

Build

pip install --group build
python -m build

License

MIT

Metadata

Release files for t-run 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for t-run 0.0.4
File Size Uploaded
t_run-0.0.4.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for t-run 0.0.4
File Interpreter ABI Platform
t_run-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / t_run-0.0.4.tar.gz

Download URL t_run-0.0.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bcbed47b2d21a29f9fc08c2a0d2263526c8f4eda4931d312777c9cb672b10753
BLAKE2b-256 checksum
How to use checksums
d41517c9b243a1aaeeb0f591794e42db3f266ea45a02fc289dcbbb8d341ccaec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.

Transparency log

Release files / t_run-0.0.4-py3-none-any.whl

Download URL t_run-0.0.4-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef84fbdb89248146f61977c771dfb952b5ee698b7e1ecd1695357ac00be3651e
BLAKE2b-256 checksum
How to use checksums
d0f961e8bd42ac2806ae656de7c809bb345c104c3a74464f93153cc800dd1434
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release 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