Le 29/07/13 13:30, Antoine Musso a écrit :
You can still have some pep8 checks ignored such as the "line too long".
As an example, say you want to get rid of the "line too long error". When running pep8 you would get a message like:
$ pep8 . ./foo.py:1:80: E501 line too long (105 > 79 characters) $
E501 is pep8 error code. To have it ignored, create a file named '.pep8' at the root of your repository and fill it with:
[pep8] # Ignore E501: line too long ignore = E501
The line beginning with a # is a comment. You can ignore more code by using comma (ie: ignore = E501, E666).
When running pep8 again:
$ pep8 . $
Success! Lines too long are entirely ignored.