diff options
| author | Byeonghoon Yoo <bh322yoo@gmail.com> | 2019-11-05 21:59:19 +0900 |
|---|---|---|
| committer | Byeonghoon Yoo <bh322yoo@gmail.com> | 2019-11-05 21:59:19 +0900 |
| commit | dd411e95bcb52e3e85c028bc0d1f5158658fc19b (patch) | |
| tree | 0bb02a8015819292e50d9834f506f6b228e03f5b /src | |
| parent | 9a45593aae18b2bd8ae9e02e0ce4ee7147b570dd (diff) | |
| download | flake8-dd411e95bcb52e3e85c028bc0d1f5158658fc19b.tar.gz | |
Fix should_ignore_file() to handle disable-noqa configuration
Diffstat (limited to 'src')
| -rw-r--r-- | src/flake8/processor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/processor.py b/src/flake8/processor.py index 3ee6dfa..1253e7a 100644 --- a/src/flake8/processor.py +++ b/src/flake8/processor.py @@ -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( |
