Piotr Dobrogost
Piotr Dobrogost

Reputation: 42425

How can I configure Pylint to check all things PEP8 checks?

Searching for an answer on Pylint's mailing list brings no interesting results.

Pylint is known to be very customizable, so I guess this should be possible...

The reason I would like Pylint to check compliance with PEP8 is because

I also asked this question on Pylint's mailing list at http://thread.gmane.org/gmane.comp.python.logilab/1039

Example of diagnostic messages from PEP8 which I don't get from Pylint:

Upvotes: 37

Views: 22576

Answers (1)

gurney alex
gurney alex

Reputation: 13645

  • E203 is not yet supported in Pylint AFAIK
  • E225 is C0322 / C0323
  • E251 should be C0322/C0323, but I'm not sure that Pylint does not special case parameters and allows lack of space there
  • E301, E303 are not supported AFAIK
  • E501 is C0301 and you can configure the length in your pylintrc
  • W291, W292 and W203 are not supported AFAIK.

It would be nice if you could report these as desired features over here.

Upvotes: 12

Related Questions