Stephen Gross
Stephen Gross

Reputation: 5724

Anyone have a favorite Python coding style enforcer?

I'm trying to find a Python coding style enforcer (tool, not person!). Any recommendations?

Upvotes: 0

Views: 853

Answers (3)

Hedlok
Hedlok

Reputation: 146

Don't forget PEP8, both the PEP8 style guide (http://www.python.org/dev/peps/pep-0008/) and the tool

Not a lint like tool, but keeps your style in line with the main python community.

yapf (https://pypi.python.org/pypi/yapf) is super cool, reformats your code to be pep8 compliant. Very handy

Upvotes: 1

Wok
Wok

Reputation: 5333

I only know pylint, but it is not an automatic code formatter, rather a marking tool.

Upvotes: 2

Katriel
Katriel

Reputation: 123772

pyflakes is like pylint but faster.

Upvotes: 0

Related Questions