Checked locally: all four checks pass, also in a fresh copy with uv sync --locked; a planted type error, unused import and unformatted file each fail the checks and make the Stop hook exit 2.
Roadmap step 0: the Python project skeleton and the checks every later ticket relies on.
- `pyproject.toml` (uv, `uv_build`), Python >= 3.12, `.python-version` 3.12 so local and CI run the minimum version; `uv.lock` committed
- Dev dependencies: pytest, respx, ruff, pyright
- ruff: rule sets `E`, `F`, `I`, `B`, `UP`, `ASYNC`, line length 120; Markdown excluded from formatting (ruff 0.17 reformats code blocks in docs)
- pyright strict on `src/` and `tests/`; `.claude/scripts` is skipped by pyright (it always excludes dot directories) but checked by ruff
- Smoke test: package is installed from `src/`
- `.gitea/workflows/ci.yml`: ruff check, ruff format check, pyright, pytest on every PR and on pushes to `main`; uv pinned to 0.13.7
- Stop hook: already ran pyright; now also runs `ruff format --check`, like CI
- Separate commit: dev log entry for #4
Checked locally: all four checks pass, also in a fresh copy with `uv sync --locked`; a planted type error, unused import and unformatted file each fail the checks and make the Stop hook exit 2.
Closes #2
claude-botBot
added this to the MVP milestone 2026-11-15 15:24:07 +01:00
pyright skips .claude/scripts (it always adds its dot-directory exclude); ruff still checks it. The Stop hook now also runs ruff format --check, matching CI.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Roadmap step 0: the Python project skeleton and the checks every later ticket relies on.
pyproject.toml(uv,uv_build), Python >= 3.12,.python-version3.12 so local and CI run the minimum version;uv.lockcommittedE,F,I,B,UP,ASYNC, line length 120; Markdown excluded from formatting (ruff 0.17 reformats code blocks in docs)src/andtests/;.claude/scriptsis skipped by pyright (it always excludes dot directories) but checked by ruffsrc/.gitea/workflows/ci.yml: ruff check, ruff format check, pyright, pytest on every PR and on pushes tomain; uv pinned to 0.13.7ruff format --check, like CIChecked locally: all four checks pass, also in a fresh copy with
uv sync --locked; a planted type error, unused import and unformatted file each fail the checks and make the Stop hook exit 2.Closes #2