Handle multiline strings with '# noqa'

In Flake8 2.x we allowed people to use # noqa at the end of a multiline
string to ignore errors inside the string (e.g., E501). Being blissfully
ignorant of this, I never accounted for it in Flake8 3. This fixes the
oversight and allows multiline statements to have the # noqa at the end.

Closes #177
This commit is contained in:
Ian Cordasco 2016-07-25 10:40:22 -05:00
parent 217aa8185c
commit 299e200cb9
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
4 changed files with 19 additions and 6 deletions

View file

@ -0,0 +1,10 @@
3.0.1 -- 2016-07-25
-------------------
- Fix regression in handling of ``# noqa`` for multiline strings.
(See also `GitLab#177`_)
.. links
.. _GitLab#177:
https://gitlab.com/pycqa/flake8/issues/177

View file

@ -6,6 +6,7 @@ All of the release notes that have been recorded for Flake8 are organized here
with the newest releases first.
.. toctree::
3.0.1
3.0.0
2.6.2
2.6.1