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.
[tool]
config-dir = "config" # default: "1_config"pipx install t-run # globaltrun ruff check .
trun black .
trun mypy .
trun isort .
trun flake8 .
trun pylint *Or without installing, from the repo root:
python -m trun ruff .repos:
- repo: https://github.com/rsb-23/trun
rev: v0.0.2
hooks:
- id: ruff-check
- id: ruff-format
- id: black
- id: isort
- id: mypyOnly the hooks you list are installed — each pulls its own pinned
dependency via additional_dependencies in .pre-commit-hooks.yaml.
pip install build
git tag v0.1.0
python -m buildMIT