Flake8Lint icon indicating copy to clipboard operation
Flake8Lint copied to clipboard

"noqa: N802" ignored

Open AstraLuma opened this issue 7 years ago • 3 comments

I have the method:

    def load_SPAM(self, data, sheet):  # noqa: N802

That's still producing:

flake8: N802 function name should be lowercase

Some quick googling shows that this should work, so I'm not sure what's up.

AstraLuma avatar Mar 27 '17 16:03 AstraLuma

Same here.

    def timerEvent(self, event):  # noqa: N802

evsasse avatar Jun 22 '17 17:06 evsasse

At first glance,

https://github.com/dreadatour/Flake8Lint/blob/0317db6ce4d766ce6c67731809e5253f71b7bcf7/Flake8Lint.py#L834-L839 invokes https://github.com/dreadatour/Flake8Lint/blob/0317db6ce4d766ce6c67731809e5253f71b7bcf7/Flake8Lint.py#L305-L320

Together they cause a line ending in '# noqa' to be skipped but without accommodation for in-line ignoring errors as specified in the flake8 documentation.

kkurian avatar Aug 15 '17 20:08 kkurian

https://github.com/dreadatour/Flake8Lint/pull/110

Made a pull request to fix.

frankhouzz avatar Aug 30 '17 00:08 frankhouzz