Too long lines (E501) fail to be reported when ending with an open triple-quoted string
Please describe how you installed Flake8
# pip install flake8
Please provide the exact, unmodified output of flake8 --bug-report
{
"dependencies": [
{
"dependency": "setuptools",
"version": "25.1.1"
}
],
"platform": {
"python_implementation": "CPython",
"python_version": "2.7.13",
"system": "Linux"
},
"plugins": [
{
"plugin": "mccabe",
"version": "0.6.1"
},
{
"plugin": "pycodestyle",
"version": "2.3.1"
},
{
"plugin": "pyflakes",
"version": "1.5.0"
}
],
"version": "3.3.0"
}
Please describe the problem or feature
Too long lines (E501) fail to be reported when ending open with a triple-quoted string.
If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
foo.py
:
$ cat foo.py
len("this line if 86 chars long and is not reported.....", "foo bar baz spam egg", """
some other string""")
len("this line is 86 chars long and is reported.........", """foo bar baz spam egg""",
"some other string")
$ flake8 foo.py
foo.py:4:80: E501 line too long (86 > 79 characters)