Repository navigation
ci: make the mypy/ruff audits colour-proof and always run them clean (#4551) - #4552
Merged
Merged
Conversation
…4551) Audits pass --no-color-output/--color=never with a colourless env, strip ANSI before parsing, and fail loudly when the tool failed but nothing parsed. pr_gates always runs both under env -i and prints "<tool> used: <ver> (<path>)". Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
| @@ -0,0 +1,50 @@ | |||
| """#4551: the mypy/ruff audits must report known errors even when the caller forces colour.""" | |||
|
|
|||
| import importlib | |||
Contributor
…sed (#4551) The full-suite job has neither tool installed; the announce step crashed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
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.
Closes #4551
--no-color-output/--color=never,NO_COLOR=1, colour env vars unset, ANSI stripped before parsing; fail loudly when the tool failed/reported errors but zero lines parsed.pr_gates: mypy and ruff gates always run underenv -i(matching version or not) and always print " used: ()".tests/test_audit_colour_proof.py(FORCE_COLOR=3 fixtures; the mypy one fails before the fix) and a pr_gates env -i test.FORCE_COLOR=3 TERM=xterm-256color pr_gates.py --fast --only lint auditsprints "mypy used: mypy 2.4.0" / "ruff used: ruff 0.16.0" and passes.🤖 Generated with Claude Code
https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR