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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: t_run-0.0.4.tar.gz
  • Upload date:
  • Size: 3.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.4.tar.gz
Algorithm Hash digest
SHA256 bcbed47b2d21a29f9fc08c2a0d2263526c8f4eda4931d312777c9cb672b10753
MD5 f122a54437404276147839f2ae215485
BLAKE2b-256 d41517c9b243a1aaeeb0f591794e42db3f266ea45a02fc289dcbbb8d341ccaec

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: t_run-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ef84fbdb89248146f61977c771dfb952b5ee698b7e1ecd1695357ac00be3651e
MD5 eff8482e832dcd358208d5376ae39c0c
BLAKE2b-256 d0f961e8bd42ac2806ae656de7c809bb345c104c3a74464f93153cc800dd1434

See more details on using hashes here.

Provenance

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

This release

0.0.4 This release

2 files

0.0.3

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