Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Errors from some flake8 plugins are ignored #5

@scorpp

Description

@scorpp

There are number of plugins producing errors which are not handled correctly. They have different issues, but I'll list them together:

  1. flake8-django
    Example: project/urls.py:115:5: DJ05 Missing namespace in urls include()
    Issue: plugin uses more than single letter + only 2 digits for code
  2. flake8-pydiatra (not yet in pip)
    Example: project/some.py:16:1: PYD016 Overlapping regexp ranges: 'A-z', '_'
    Issue: three-letter error code
  3. fake8-eradicate
    Example: project/some.py:218:2: E800: Found commented out code
    Issue: problem is that plugin outputs colon after error code

Here is what flake8 doc says about error codes:

Your entry point does not need to be exactly 4 characters as of Flake8 3.0. Consider using an entry point with 3 letters followed by 3 numbers (i.e. ABC123 ).

I understand that some of the above doesn't comply well with the above rule, but these plugins work and people are already using them and are most probably stick with those error codes, so I don't think it makes sense to change them. (# 3 is surely not the case.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions