mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 04:56:54 +00:00
Add ability to check if a file is ignored inline
Check for ``# flake8: noqa`` lines inside a file.
This commit is contained in:
parent
2c17b4342f
commit
daf5c4d80d
2 changed files with 19 additions and 0 deletions
|
|
@ -291,6 +291,9 @@ class FileChecker(object):
|
|||
|
||||
def run_checks(self):
|
||||
"""Run checks against the file."""
|
||||
if self.processor.should_ignore_file():
|
||||
return
|
||||
|
||||
try:
|
||||
self.process_tokens()
|
||||
except exceptions.InvalidSyntax as exc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue