mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
Fix should_ignore_file() to handle disable-noqa configuration
This commit is contained in:
parent
9a45593aae
commit
dd411e95bc
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ class FileProcessor(object):
|
|||
:rtype:
|
||||
bool
|
||||
"""
|
||||
if 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