Skip to content

Add safety nets to the automated checks: coverage floor, type check, next Python - #97

Open
ianktoo wants to merge 1 commit into
masterfrom
ci/quality-gates
Open

ianktoo wants to merge 1 commit into
masterfrom
ci/quality-gates

Conversation

@ianktoo

@ianktoo ianktoo commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Closes #90 (the type check itself stays informational until #91 is done).

What was affected

The automated checks that run on every change had four blind spots:

  1. Test coverage could silently shrink. The checks measured how much of the code the tests exercise, then threw the number away. About two thirds of the code is covered today, but nothing would notice if that dropped.
  2. The type check never ran. The project is set up for strict type checking, but no automated step ran it, so it has quietly accumulated about 350 findings.
  3. One folder was skipped by the style check. The evaluation scripts (evals/) were not covered.
  4. No early warning for the next Python version. The project supports Python 3.11 to 3.14, and nothing told us if 3.15 would break it.

How it affects the app

Nothing changes for people using DataForge. These gaps let quality slip without anyone noticing, so problems would surface later and cost more to fix.

The fix

  • Coverage floor of 64% (it is 66% today). A change that lowers test coverage below this now fails the check. The number is meant to go up as tests are added (tests: core LLM and scraping paths are under-covered; reviewer.py/tips.py/main.py at 0% #92), never down.
  • Type check now runs on every change, but only reports. It does not fail the build, because fixing the existing findings is a separate, gradual job (types: 350 mypy strict errors in 39 files #91). When that's done, one setting turns it into a real gate.
  • Style check now includes evals/. It already passes there, so nothing needed fixing.
  • New Python 3.15 test run on one system. It is informational: if it fails, we get an early warning but nothing is blocked.

Status

  • Ready for review. Only check settings changed, no application code.
  • I confirmed locally that the coverage floor really fails a run that covers too little, and that the style check passes on evals/.
  • The checks on this PR are the real test of the 64% floor across all three operating systems. If any platform lands below it, I will adjust the number with an explanation rather than weaken the tests.
  • The Python 3.15 and type check results may show red marks. That is expected and does not block merging.

… jobs

Refs #90

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

ci: add coverage floor and mypy gate; widen ruff to evals/

1 participant