Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 15 Aug 16:12
· 20 commits to main since this release

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,
    test and check, over ruff / mypy / pytest. Each returns the
    underlying tool's exit code; check runs the four in order and stops
    at the first failure.

  • Typing strictness as configuration, read from [tool.tempest] typing_strictness in pyproject.toml (lenient | standard |
    strict, defaulting to standard), with a --strictness / -s
    override per run. Levels only ever add flags on top of the
    project's own [tool.ruff] / [tool.mypy]. ANN401 is never enabled
    at any level: Any is 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-sdk uses exactly this,
    which is what keeps tempest check and tempest-cli check identical.

Notes

  • The only runtime dependency is typer. ruff, mypy and pytest
    are invoked from the active environment (or through uv run when they
    are not on PATH), 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.