Last Updated: January 14, 2017
· charlesroper

Python PEP8 linting in Sublime Text 2

In Sublime Text 2 you can enjoy as-you-type PEP8 linting by using the SublimeLinter plugin:


What's more, you can control which of the PEP8 errors to ignore (not that you'd want to ignore any, of course!) Take a look in the SublimeLinter.sublime-settings file for the "pep8_ignore" declaration. Here's a snippet of the relevant section:

// Set this to false to turn pep8 checking off completely
"pep8": true,

    A list of pep8 error numbers to ignore. By default "line too long" errors are ignored.
    The list of error codes is in this file: https://github.com/jcrocholl/pep8/blob/master/pep8.py.
    Search for "Ennn:", where nnn is a 3-digit number.
Say Thanks

2 Responses
Add your response

Me pixel

Note that the project moved to https://github.com/SublimeLinter/SublimeLinter.

over 1 year ago ·
1488142 1381902348730861 1345673360 n

Great, but now comes default in SublimeLinter.

over 1 year ago ·