Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyflakes vs flake8
#1
pyflakes vs flake8 - which one is used to warn python script errors ?
Reply
#2
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.
Reply
#3
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.
Reply
#4
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pylint/pyflakes/flake8 missed AttributeError elyoni 2 1,815 Feb-19-2020, 07:36 AM
Last Post: elyoni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020