hqmo1w
Last Updated: January 14, 2017
·
20.82K
· charlesroper
93fc84c261cdce2e2f1d64c8e531ecb7

Python PEP8 linting in Sublime Text 2

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

https://github.com/Kronuz/SublimeLinter/

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.
*/
"pep8_ignore":
[
    "E501"
],

2 Responses
Add your response

4673
Me pixel

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

over 1 year ago ·
12624
1488142 1381902348730861 1345673360 n

Great, but now comes default in SublimeLinter.

over 1 year ago ·