Skip to content

Update maximum_line_length to use Checker.noqa - #539

Merged
IanLee1521 merged 1 commit into
PyCQA:masterfrom
sigmavirus24:max-line-length-noqa
Jun 8, 2016
Merged

Update maximum_line_length to use Checker.noqa#539
IanLee1521 merged 1 commit into
PyCQA:masterfrom
sigmavirus24:max-line-length-noqa

Conversation

@sigmavirus24

Copy link
Copy Markdown
Member

This also updates the Checker to update it's state for physical lines
as well as logical lines. This allows maximum_line_length to rely on
Checker state for its noqa check.

Closes #538

This also updates the Checker to update it's state for physical lines
as well as logical lines. This allows maximum_line_length to rely on
Checker state for its noqa check.

Closes PyCQA#538
sigmavirus24 added a commit to PyCQA/flake8 that referenced this pull request Jun 7, 2016
This adds E501 which is actually a poor test. Currently,
pep8.maximum_line_length does its own check for noqa instead of relying
on the Checker. See also: PyCQA/pycodestyle#539
@IanLee1521 IanLee1521 added this to the 2.1 milestone Jun 8, 2016
@IanLee1521
IanLee1521 merged commit f8af83d into PyCQA:master Jun 8, 2016
@IanLee1521

IanLee1521 commented Jun 8, 2016

Copy link
Copy Markdown
Member

Thanks @sigmavirus24 !

@jayvdb

jayvdb commented Jun 8, 2016

Copy link
Copy Markdown
Member

A relnote would be good for this as many flake8 plugins could benefit from it, as they often do thier own noqa support.

@sigmavirus24
sigmavirus24 deleted the max-line-length-noqa branch June 8, 2016 13:31
@sigmavirus24

Copy link
Copy Markdown
Member Author

@jayvdb I'm not sure which plugins do that, but this attribute has been on the Checker for as long as I can remember and has been used by hacking for years.

Either way, plugins for Flake8 will be changing drastically in 3.0 so plugins will not have to do their own noqa check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants