CLI Referencedev command
dev command
Development tools — install, format, lint, test, clean, and serve docs. Replaces the former Makefile.
Synopsis
uv run readme dev [COMMAND] [OPTIONS]Commands
| Command | Purpose |
|---|---|
install | Sync all dependencies from the lockfile (uv sync --all-groups) |
format | Format code with ruff check --fix and ruff format |
lint | Lint with ruff, pylint, and mypy |
test | Run the pytest suite |
clean | Remove caches, build artifacts, and generated files |
docs | Serve the Fumadocs dev docs site locally (pnpm dev) |
update-deps | Update all dependencies to latest compatible versions |
dev install
uv run readme dev installRuns uv sync --all-groups to install all dependency groups from the lockfile.
dev format
uv run readme dev formatRuns two Ruff commands in sequence on scripts/ and tests/:
uv run -- python -m ruff check --fix scripts testsuv run -- python -m ruff format scripts tests
dev lint
uv run readme dev lintRuns three linters in sequence:
ruff check— fast lintingpylint— deep analysismypy— type checking
dev test
# Full suite with coverage
uv run readme dev test
# Without coverage
uv run readme dev test --no-coverage
# Filter by expression
uv run readme dev test -k "test_banner"
# Filter by marker
uv run readme dev test -m "not integration"| Option | Default | Notes |
|---|---|---|
--coverage/--no-coverage | --coverage | Enable/disable coverage reporting |
-k | — | pytest -k filter expression |
-m | — | pytest -m marker expression |
dev clean
# Basic clean (caches only)
uv run readme dev clean
# Also remove .venv
uv run readme dev clean --venv
# Also remove generated assets
uv run readme dev clean --generatedRemoves __pycache__/, .pytest_cache/, .mypy_cache/, logs/, and .coverage* files. Optional flags extend to .venv and generated assets in .github/assets/img/.
dev docs
uv run readme dev docsStarts the Fumadocs dev server (pnpm dev inside the docs/ directory). Requires pnpm and node to be installed.
dev update-deps
uv run readme dev update-depsRecompiles the lockfile with latest compatible versions. Run readme dev install afterward to apply.