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"
],
Written by Charles Roper
Related protips
2 Responses
Note that the project moved to https://github.com/SublimeLinter/SublimeLinter.
over 1 year ago
·
Great, but now comes default in SublimeLinter.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#