Skip to content

Seems to not filter on flake8-simplify class errors #45

Closed

Description

@eivindjahren

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

Activity

  1. TrueBrain commented on Jul 23, 2022

    @TrueBrain
    Owner

    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!

  2. peternewman commented on Feb 16, 2023

    @peternewman
    Contributor

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

  3. TrueBrain commented on Nov 21, 2026

    @TrueBrain
    Owner

    Sorry it took so long to actually fix this. But now more than 3 years later: fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions