mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Fix lint error
This commit is contained in:
parent
29d8b11209
commit
d23f77d06e
1 changed files with 2 additions and 1 deletions
|
|
@ -349,7 +349,8 @@ class FileProcessor(object):
|
|||
:rtype:
|
||||
bool
|
||||
"""
|
||||
if not self.disable_noqa and any(defaults.NOQA_FILE.match(line) for line in self.lines):
|
||||
if not self.disable_noqa \
|
||||
and any(defaults.NOQA_FILE.match(line) for line in self.lines):
|
||||
return True
|
||||
elif any(defaults.NOQA_FILE.search(line) for line in self.lines):
|
||||
LOG.warning(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue