mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-14 16:34:46 +00:00
Incorporate @phd's patch.
This commit is contained in:
parent
c89ac53cfb
commit
297a566b46
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ pep8style = None
|
||||||
|
|
||||||
|
|
||||||
def check_file(path, complexity=-1):
|
def check_file(path, complexity=-1):
|
||||||
|
if pep8style.excluded(path):
|
||||||
|
return 0
|
||||||
warnings = pyflakes.checkPath(path)
|
warnings = pyflakes.checkPath(path)
|
||||||
warnings += pep8style.input_file(path)
|
warnings += pep8style.input_file(path)
|
||||||
if complexity > -1:
|
if complexity > -1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue