diff --git a/flake8/util.py b/flake8/util.py index 42f15d8..b41b3ee 100644 --- a/flake8/util.py +++ b/flake8/util.py @@ -24,4 +24,4 @@ def skip_file(path): content = f.read() finally: f.close() - return _NOQA.match(content) is not None + return _NOQA.search(content) is not None