Getting Flake8 to report syntax errors.
Sample input file "test.py": def f(x) print x Pyflakes reports the syntax error: $ pyflakes test.py test.py:1:9: invalid syntax def f(x) ^ $ But Flake8 doesn't: $ flake8 test.py $ Is this intentional? Is there a way to get Flake8 to report syntax errors? $ flake8 --version 2.3.0 (pep8: 1.5.7, pyflakes: 0.8.1, mccabe: 0.3) CPython 2.7.5 on Darwin $ pyflakes --version 0.8.1
On Jan 15, 2015 7:00 PM, "Kannan Goundan" <kannan@cakoose.com> wrote:
Sample input file "test.py":
def f(x) print x
Pyflakes reports the syntax error:
$ pyflakes test.py test.py:1:9: invalid syntax def f(x) ^ $
But Flake8 doesn't:
$ flake8 test.py $
Is this intentional? Is there a way to get Flake8 to report syntax
errors?
$ flake8 --version 2.3.0 (pep8: 1.5.7, pyflakes: 0.8.1, mccabe: 0.3) CPython 2.7.5 on
Darwin
$ pyflakes --version 0.8.1
_______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality
Sounds like a bug to me. Please report this on the repo?
participants (2)
-
Ian Cordasco
-
Kannan Goundan