mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 03:06:53 +00:00
Fixes #37.
I'm pre-emptively merging my own changes that I submitted upstream here for milestone 1.6
This commit is contained in:
commit
ada8d325ca
1 changed files with 3 additions and 2 deletions
|
|
@ -1205,7 +1205,8 @@ class Checker(object):
|
|||
self.line_number += 1
|
||||
if self.line_number > len(self.lines):
|
||||
return ''
|
||||
return self.lines[self.line_number - 1]
|
||||
line = self.lines[self.line_number - 1]
|
||||
return '' if line.lower().strip().endswith('# nopep8') else line
|
||||
|
||||
def readline_check_physical(self):
|
||||
"""
|
||||
|
|
@ -1882,7 +1883,7 @@ def process_options(arglist=None, parse_argv=False, config_file=None):
|
|||
help="use exit code 0 (success), even if there are "
|
||||
"warnings")
|
||||
parser.add_option('--max-complexity', default=-1, action='store',
|
||||
type='int', help="McCabe complexity treshold")
|
||||
type='int', help="McCabe complexity threshold")
|
||||
|
||||
options, args = parser.parse_args(arglist)
|
||||
options.reporter = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue