Skip to content

Development

Local setup

Install the project with development and docs dependencies:

pip install -e ".[dev,docs]"

Useful commands

Run tests

pytest tests/ -v

Lint

ruff check src/ tests/
ruff format --check src/ tests/

Type-check

mypy src/

Build docs

mkdocs build --strict

Serve docs locally

mkdocs serve

Important directories

Path Purpose
src/caretaker/ source package
tests/ unit and integration-style tests
schema/ versioned config schema
dist/templates/ consumer repo templates
.github/workflows/ CI and orchestrator automation
docs/ documentation site content

CI expectations

The main CI workflow validates:

  • Ruff linting
  • Ruff formatting
  • mypy strict checks
  • pytest with coverage

The docs workflow separately builds the MkDocs site and publishes it to GitHub Pages on main.

Documentation publishing

  • mkdocs.yml defines the site structure
  • .github/workflows/docs.yml builds and publishes the site
  • .readthedocs.yml allows the same site to be built by Read the Docs-compatible tooling

Contribution notes

When editing agent behavior:

  • keep policy changes narrow and testable
  • update docs when workflow expectations change
  • prefer explicit config over hidden defaults
  • run the full test suite before merging