BUG/Regression: # noqa no longer respected at the end of multi-line strings
2.7.12, Anaconda latest as of July 25 2016:
pip: 8.1.2-py27_0
python: 2.7.12-1
pip install flake8:
Collecting flake8
Downloading flake8-3.0.0-py2.py3-none-any.whl (62kB)
Please describe the problem or feature
Previously, multi-line strings (""" ... """) could have too-long-lines ignored with a """ # noqa
at the end quote. These are no longer respected. For example:
def foo():
"""this
88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
""" # noqa
pass
This used to pass fine, but now gives an E501 line too long (XXX > 79 characters)
. I have about 50 of these new errors for one of the (many) repos I work on.