fix(ci): restore green Lint + mypy on main#29
Merged
Conversation
Two CI jobs (`ruff format --check src tests`, bare `mypy`) were red on main. Causes were pre-existing/mechanical, not behavioural: - `ruff format`: `src/wardline/core/legis.py` + `tests/conformance/test_legis_intake_contract.py` (from the legis merge 948daa4) and `src/wardline/core/judged.py` + `tests/unit/cli/test_cli.py` (from #28) were never `ruff format`-reflowed. - `mypy`: `tests/unit/core/test_legis_artifact.py:175` carried a stale `# type: ignore[arg-type]` for a `subprocess.run(cwd=<object>)` call mypy now reports as `call-overload`; corrected the ignore code. Formatting-only + an ignore-code correction; no logic changes. Full suite 2406 passed, ruff check/format + mypy strict all green. 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.
Main's Lint + Format and Types (mypy strict) jobs have been red since the legis merge (
931aed8), independent of the security PRs. This restores green:ruff formatreflow oflegis.py,test_legis_intake_contract.py(legis merge), andjudged.py,test_cli.py(fix(scan): gate on the unsuppressed population by default (secure --fail-on) — supersedes #24, #25 #28 —ruff checkran but notruff format --check).mypy: corrected a stale# type: ignore[arg-type]→[call-overload]on asubprocess.run(cwd=<object>)call intest_legis_artifact.py.Formatting + ignore-code only; no logic changes. Full suite 2406 passed;
ruff check src tests,ruff format --check src tests, and baremypyall green locally.🤖 Generated with Claude Code