Repository navigation
v0.1.0
First release. Extracted from
tempest-fastapi-sdk,
where the same gate shipped as tempest check — reachable only by
installing a FastAPI SDK.
Added
-
The quality gate:
lint,fix,format,fmt-check,type,
testandcheck, overruff/mypy/pytest. Each returns the
underlying tool's exit code;checkruns the four in order and stops
at the first failure. -
Typing strictness as configuration, read from
[tool.tempest] typing_strictnessinpyproject.toml(lenient|standard|
strict, defaulting tostandard), with a--strictness/-s
override per run. Levels only ever add flags on top of the
project's own[tool.ruff]/[tool.mypy].ANN401is never enabled
at any level:Anyis a legitimate annotation. -
pr-prompt— builds the prompt that makes an AI write a branch's
pull-request description, carrying the repository's own PR template
(or a bundled PT-BR / EN-US default), the rules that stop a model from
returning the template unfilled, and the branch context read as
base...head. -
A library surface:
run_full_check,run_ruff_check,
run_ruff_fix,run_ruff_format,run_mypy,run_pytest,
load_tempest_config,find_pyproject,generate_pr_prompt. -
register_commands(app)mounts the whole gate onto an existing
typer.Typer, so another CLI exposes these commands under its own
name without copying a body.tempest-fastapi-sdkuses exactly this,
which is what keepstempest checkandtempest-cli checkidentical.
Notes
- The only runtime dependency is
typer.ruff,mypyandpytest
are invoked from the active environment (or throughuv runwhen they
are not onPATH), so the project pins the versions it wants. The
[tools]extra installs all three for whoever prefers that. - Measured against the SDK it came from: reaching these commands there
loaded 38.7 MB of dependencies and about 0.5 s of import time per
invocation — for four commands that touch none of it. A test in this
package asserts that importing it pulls no web framework.