Developer Setup
This page documents the day-to-day development workflow for contributors who are already working in a repository created from this template.
The primary path is Dev Container-first for consistent environments across contributors.
Prerequisites
Recommended Setup (Dev Container)
- Open the repository folder in VS Code.
- Select Reopen in Container when prompted.
- If no prompt appears, run Dev Containers: Reopen in Container from Command Palette.
- Wait for container setup to finish.
scripts/setup.sh runs during container creation, so the environment and dependencies are prepared automatically.
Pre-commit Hooks
Hooks are typically installed by setup automation. If needed, re-install manually:
prek install --hook-type pre-commit --overwrite
prek install --hook-type commit-msg --overwrite
Warm up hooks
Run prek run --all-files after hook installation. This preloads environments and avoids first-commit surprises.
Daily Commands
Use these commands from the repository root:
uv run ruff check
uv run ruff format --check
uv run ty check
uv run pytest --cov --cov-report=term-missing --cov-fail-under=80
uv run zensical build --clean
Optional: Local Setup Without Dev Container
If you are not using Dev Containers, use the fallback local setup path in Create a New Repository from This Template.
For local tooling details, see Resources.