[フレーム]
Last Updated: September 27, 2021
·
23.68K
· 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:

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

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 ·

AltStyle によって変換されたページ (->オリジナル) /