Python Forum
pyflakes vs flake8 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: pyflakes vs flake8 (/thread-3552.html)



pyflakes vs flake8 - broutray - Jun-02-2017

pyflakes vs flake8 - which one is used to warn python script errors ?


RE: pyflakes vs flake8 - snippsat - Jun-02-2017

I have both installed in Atom eg linter-flake8,
use flake8 sometimes,has both always off when writing code if not they are annoying.
Now do i know PEP-8 well,and follow the most of it.


RE: pyflakes vs flake8 - broutray - Jun-02-2017

Thanks for your response.

My query is specifically do flake-8/PEP-8 catch the scripting errors or they catch the styling issues in the code.

In the other side, pyflakes catches the scripting errors.


RE: pyflakes vs flake8 - snippsat - Jun-02-2017

Quote:My query is specifically do flake-8/PEP-8 catch the scripting errors or they catch the styling issues in the code.
Flake8 bring together pep8 and pyflakes.
Quote:flake8: pep8 + pyflakes + more
Tarek Ziadé wrote Flake8, which brings together pep8 and pyflakes in one convenient standalone package.
You don’t even need separate installations of pep8 or pyflakes,
since those come baked in to Flake8.
You can install it with pip install flake8.
Catch mostly style issues,it do warn for some stuff that be error in code.
Like eg if write self.name = nam it will warn on undefined name nam.