Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 2.18 KB

AGENTS.md

File metadata and controls

69 lines (52 loc) · 2.18 KB

AGENTS.md

This file is for Claude Code and other Claude-based AI assistants working in this repository.

What This Repo Is

sphinxcontrib-enum — Sphinx directive for documenting an enum with properties or dataclass elements in tabular format.

A Python library. Source lives in src/sphinxcontrib_enum/. Tests are in tests/. Documentation is in doc/.

Tooling

Uses just as a task runner, uv for dependency management, and hatchling as the build backend.

Setup

just setup        # create .venv + install pre-commit hooks
just install      # sync all dev dependencies

Tests

just test                              # run tests against project venv (fast iteration)
just test tests/test_foo.py            # run a specific file
just test-all                          # run full suite in an isolated environment
just test-all -p 3.12                  # run full suite against a specific python
just coverage                          # combine and report coverage

just test uses the project venv with --no-sync for speed. just test-all runs in a fully isolated environment and accepts any uv run flags (e.g. -p 3.12 --resolution lowest-direct).

Linting / Formatting

just fix          # auto-fix lint + format
just check        # all static checks without modifying files
just prek         # run pre-commit hooks

Type Checking

just check-types  # mypy + pyright (project venv)
just check-types-isolated   # mypy + pyright in isolated env

Docs

just docs         # build Sphinx HTML and open in browser
just docs-live    # live-reload dev server
just check-docs   # lint docs with doc8

Release

just release 1.2.3   # validates version, tags, and pushes tag to GitHub

Test Strategy

CI tests the full matrix of supported Python versions on Linux, plus the oldest and newest Python on Windows and macOS. Lower dependency bounds are tested with --resolution lowest-direct on the oldest supported Python.

Project Structure

src/sphinxcontrib_enum/   # library source
tests/                               # pytest test suite
doc/source/                          # Sphinx documentation source