Skip to content

chore(tooling): converge on ty, coverage ratchet, docs-reference CI gate#344

Merged
bartzbeielstein merged 1 commit into
developfrom
chore/tooling-baseline
Jun 7, 2026
Merged

chore(tooling): converge on ty, coverage ratchet, docs-reference CI gate#344
bartzbeielstein merged 1 commit into
developfrom
chore/tooling-baseline

Conversation

@bartzbeielstein
Copy link
Copy Markdown
Collaborator

Roadmap #5 (version-robust docs) + #6 (tooling baseline) for spotforecast2-safe.

#5 — docs-reference sync

New CI job API Reference In Sync regenerates the quartodoc reference and fails on drift (git diff --exit-code docs/reference/). Verified the committed reference is currently in sync.

#6 — tooling baseline

  • Type checker: drop mypy (dev deps + optional-deps + pre-commit types-all hook), adopt Astral ty; add [tool.ty]; run ty check src/ non-blocking (continue-on-error) in the lint job. (ty 0.0.44 surfaces ~731 diagnostics today — informational.)
  • Coverage: add [tool.coverage] with fail_under=68 ratchet (local total 71.5%), enforced by the existing pytest --cov run.
  • Legacy lint: remove redundant .flake8 (not invoked anywhere; flake8 also removed from runtime deps) + REUSE.toml entry; add minimal [tool.ruff] (line-length 88).

Non-breaking, non-releasing (chore). Verified locally: full suite 2354 passed / 1 skipped, coverage gate green (71.5% ≥ 68), ruff clean.

… CI gate

Roadmap #5/#6 tooling baseline for spotforecast2-safe:
- type checker: drop mypy (dev + optional-deps + pre-commit hook), adopt
  Astral `ty`; add [tool.ty]; run `ty check src/` non-blocking in CI.
- coverage: add [tool.coverage] with fail_under=68 ratchet (~71% today),
  enforced by the existing pytest --cov run.
- legacy lint: remove redundant .flake8 (not invoked anywhere; flake8 also
  dropped from runtime deps) and add a minimal [tool.ruff] (line-length 88).
- docs (#5): new "API Reference In Sync" CI job regenerates the quartodoc
  reference and fails on drift (git diff --exit-code docs/reference/).

Non-breaking, non-releasing (chore). Promotes to main with the next release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bartzbeielstein bartzbeielstein merged commit d45d3db into develop Jun 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant