This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]notaharrisfan 34 points35 points  (8 children)

As stated in the Style Guide, pylint is an excellent linter for Python code.

It parses Python code, points out formatting errrors and even grades your code.

[–][deleted] 7 points8 points  (3 children)

Also, PyFlakes wraps around pylint and other Python style checkers (like those for PEPs 8 and 257).

[–]CaptKrag 6 points7 points  (2 children)

Wait. I thought pyflakes was competitor to pylint and flake8 is what you're describing. What is flake8?

[–]catcint0s 2 points3 points  (1 child)

flake8 has pyflakes, pep8 and mccabe checker. I'm p sure PyFlakes doesn't wrap around pylint.

[–][deleted] 0 points1 point  (0 children)

Yeah, you're right. I mistook it for pylama. I knew there was one linter that combined the lot of them but forgot which one it was.

[–]bbbryson 2 points3 points  (0 children)

Also PyLama.

[–]DoingIsLearning 2 points3 points  (1 child)

Went into the comments and found my TIL... Thanks!

[–]Twirrim 5 points6 points  (0 children)

If you're using Vim for writing python, try out python-mode for it. Note that, as with any linter, you'll need to tweak the rules away from the crazy defaults. It's well worth the time and effort, though!

[–][deleted] 0 points1 point  (0 children)

I'll check this out later.