plinss / flake8-noqa

flake8 plugin to validate #noqa comments - Mirror of https://gitlab.linss.com/open-source/flake8/flake8-noqa
GNU Lesser General Public License v3.0
41 stars 6 forks source link

Suggestion: deduplicate codes in example #25

Closed PeterJCLaw closed 1 year ago

PeterJCLaw commented 1 year ago

For example:

from foo import bar, baz, quox  # noqa
print(quox)

results in an error like:

demo.py:1: NQA104 "# noqa" must have codes, e.g. "# noqa: F401, F401"

with F401 repeated for each occurrence. However in practise only a single occurrence is needed to ignore the error.