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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
079cc2e2584bd234cd8dcd38bc51c68158d77c8e87ad071be37a070cca7f3d2f
|
|
| MD5 |
a214a643ce78b95032e627145a4fb4eb
|
|
| BLAKE2b-256 |
58e67a0ab68f0e5c37b05b334ec9c1462f44c6231effe3bd3c4e9186068eadc0
|
Provenance
The following attestation bundles were made for t_run-0.0.2.tar.gz:
Publisher:
release.yml on rsb-23/trun
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
t_run-0.0.2.tar.gz -
Subject digest:
079cc2e2584bd234cd8dcd38bc51c68158d77c8e87ad071be37a070cca7f3d2f - Sigstore transparency entry: 2104463611
- Sigstore integration time:
-
Permalink:
rsb-23/trun@2cc4f7bd3bd809422a1dd0ea8a578774ff285d6c -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/rsb-23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2cc4f7bd3bd809422a1dd0ea8a578774ff285d6c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e420c3a457ca4c2f09da2f2b2a177618714030e7b65c7f9aebb6cab9403c9b1
|
|
| MD5 |
b9a1937c475024eab6502e7d058eaad0
|
|
| BLAKE2b-256 |
65c369da822bdb2fc54c84d323cd1934da6d0620f44ff98746d9c6dc19baa1ee
|
Provenance
The following attestation bundles were made for t_run-0.0.2-py3-none-any.whl:
Publisher:
release.yml on rsb-23/trun
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
t_run-0.0.2-py3-none-any.whl -
Subject digest:
9e420c3a457ca4c2f09da2f2b2a177618714030e7b65c7f9aebb6cab9403c9b1 - Sigstore transparency entry: 2104463747
- Sigstore integration time:
-
Permalink:
rsb-23/trun@2cc4f7bd3bd809422a1dd0ea8a578774ff285d6c -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/rsb-23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2cc4f7bd3bd809422a1dd0ea8a578774ff285d6c -
Trigger Event:
push
-
Statement type: