Standardize Python project setup and validation with uv, ruff, typos, and mypy. Use when creating a new Python project, normalizing an existing repository, adding Python quality tooling, or driving Python code to a clean lint, spelling, formatting, and type-check state through a repeatable uv-based workflow.
94
94%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
#!/usr/bin/env bash
set -euo pipefail
target="${1:-.}"
mypy_target="${2:-$target}"
echo "[1/4] Ruff format check: ${target}"
uv run ruff format --check "${target}"
echo "[2/4] Ruff lint: ${target}"
uv run ruff check "${target}"
echo "[3/4] Typos: ${target}"
uv run typos "${target}"
echo "[4/4] MyPy: ${mypy_target}"
uv run mypy "${mypy_target}"