Chore: Set up Python project skeleton with CI checks #6

Merged
claude-bot Bot merged 3 commits from chore/2-project-skeleton into main 2026-11-16 02:36:00 +01:00

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

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-bot Bot added this to the MVP milestone 2026-11-15 15:24:07 +01:00
claude-bot Bot added 2 commits 2026-11-15 15:24:07 +01:00
chore: set up Python project skeleton with CI checks
CI / checks (pull_request) Successful in 48s
e91d05497d
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.
kasun added 1 commit 2026-11-15 21:44:33 +01:00
json.loads returned untyped data, which failed strict type checking. pyright never reported it because it skips the .claude/ folder.
claude-bot Bot merged commit be34ab536e into main 2026-11-16 02:36:00 +01:00
claude-bot Bot deleted branch chore/2-project-skeleton 2026-11-16 02:36:00 +01:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/deverenz#6