chore(tooling): converge on ty, coverage ratchet, docs-reference CI gate#344
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
types-allhook), adopt Astralty; add[tool.ty]; runty check src/non-blocking (continue-on-error) in the lint job. (ty 0.0.44 surfaces ~731 diagnostics today — informational.)[tool.coverage]withfail_under=68ratchet (local total 71.5%), enforced by the existingpytest --covrun..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.