print("this line has 65 characters plus an example noqa comment")# noqa: B018
commands ran
$ pycodestyle --max-line-length 65 --select E501 code_sample.py # no errors; noqa comment is ignored
$ flake8 --max-line-length 65 --select E501 code_sample.py # E501 error; noqa comment is included as part of line
how did you install flake8?
unmodified output of
flake8 --bug-report
describe the problem
what I expected to happen
Flake8 should give the same output as pycodestyle when selecting E501 but pycodestyle's
noqa
argument is set to false in flake8Here is the
noqa
attribute that should be populated: https://github.com/PyCQA/pycodestyle/blob/main/pycodestyle.py#L1721...
sample code
commands ran