Skip to content

fix: support multi-letter error and warning classes - #60

Merged
TrueBrain merged 1 commit into
mainfrom
t3/multi-letter-classes
Nov 21, 2026
Merged

TrueBrain merged 1 commit into
mainfrom
t3/multi-letter-classes

Conversation

@TrueBrain

Copy link
Copy Markdown
Owner

Fixes #45.

Classes were squashed into a one-letter regex class ([SIM]\d\d\d), so codes like SIM103 never matched. Each class is now a prefix: E,F,SIM → (?:E|F|SIM). Default warnings ("everything not an error") use a negative lookahead.

Also: the matcher JSON was edited in place, so a second use of the action in the same job kept the first run's classes. It's now written to a fresh file in RUNNER_TEMP.

Behaviour change: a class like C4 now means the prefix C4, not "C or 4". I checked the public workflows that set classes; only E,H,I00,Q00 turns up, and it keeps matching the codes it was written for.

New CI job runs the action twice in one job and checks the generated matcher.

🤖 Generated with Claude Code

@TrueBrain
TrueBrain merged commit 07aee68 into main Nov 21, 2026
11 checks passed
@TrueBrain
TrueBrain deleted the t3/multi-letter-classes branch November 21, 2026 11:32
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.

Seems to not filter on flake8-simplify class errors

1 participant