Quickstart
Get tq running in a Python repository in a few steps.
1. Install
Choose an install mode:
- project dependency:
uv add --dev tqlint - ephemeral run:
uvx --from tqlint tq check - global tool:
uv tool install tqlint - pip install:
python -m pip install tqlint
Package and command naming
- Distribution package:
tqlint - CLI command:
tq - Primary command shape:
tq check
Because tq is not the published PyPI package name, ephemeral runs must use uvx --from tqlint tq ....
2. Add minimal configuration
Create or update pyproject.toml:
toml
[tool.tq]
[[tool.tq.targets]]
name = "app"
package = "your_package"
source_root = "src"
test_root = "tests"3. Run a check
sh
uv run tq checkFor CI or editor integrations, emit JSON output:
sh
uv run tq check --output-format json4. Tune behavior
Use these common flags:
--select/--ignorefor rule selection--max-test-file-non-blank-linesfor file size threshold--qualifier-strategyand--allowed-qualifierfor qualifier policy
Next steps
- Read Configuration for keys and precedence.
- Browse the Rules Index for rule behavior.
- See CLI Reference for command options.