diff --git a/flake8/util.py b/flake8/util.py index 86db8ce..89640bb 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