Seems to not filter on flake8-simplify class errors
When using
- name: flake8 Lint
uses: TrueBrain/actions-flake8@v2
with:
plugins: flake8-simplify
error_classes: 'E,F'
warning_classes:'SIM'
I would expect SIM errors to become a warning, but it becomes a failing error
This action currently only supports error/warnings classes of a single letter. As that was what everyone was doing ... but of course it was waiting for someone to come along and break that rule :P And simplify is that one :)
Fixing this is non-trivial, as currently we do some magic to make the matching work .. I will put it on my todo list to look into it!
From a quick look, it seems it's currently a character group that gets substituted into the regex.
I think if you just used a non-capturing group it should work: https://www.regular-expressions.info/brackets.html
So e.g.:
E,F,SIM
Gets translated to:
(?:E|F|SIM)
Assuming they're supported...