Show More
@@ -574,11 +574,14 b' def has_root():' | |||
|
574 | 574 | |
|
575 | 575 | @check("pyflakes", "Pyflakes python linter") |
|
576 | 576 | def has_pyflakes(): |
|
577 | return matchoutput( | |
|
578 | "sh -c \"echo 'import re' 2>&1 | $PYTHON -m pyflakes\"", | |
|
579 | br"<stdin>:1: 're' imported but unused", | |
|
580 | True, | |
|
581 | ) | |
|
577 | try: | |
|
578 | import pyflakes | |
|
579 | ||
|
580 | pyflakes.__version__ | |
|
581 | except ImportError: | |
|
582 | return False | |
|
583 | else: | |
|
584 | return True | |
|
582 | 585 | |
|
583 | 586 | |
|
584 | 587 | @check("pylint", "Pylint python linter") |
General Comments 0
You need to be logged in to leave comments.
Login now