You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-24Lines changed: 16 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,42 +45,34 @@ In addition to the standard SublimeLinter settings, SublimeLinter-pep8 provides
45
45
|select|A comma-separated list of error codes to select, overrides ignore||✓|
46
46
|max-line-length|The maximum allowed line length. `null` uses the PEP8 default of 79.|✓||
47
47
48
-
### Settings quick start
48
+
### Implementing per-project settings
49
+
Typically you will want to configure pep8 on a per-project basis to conform to the coding style for all files in that project. Usually you want to ignore certain pep8 warnings. First you need to find the pep8 error codes from the [pep8 documentation](http://pep8.readthedocs.org/en/latest/intro.html#error-codes). Then you need to configure the pep8 linter to ignore those warnings.
49
50
50
-
One way to adjust linting settings for your preferences is to use Sublime Text project functionality.
51
-
This is to avoid extraneous red markers all over your source code files, when pep8 kicks in and some of your coding style does not suit for pep8. A Sublime Text project consists of working folders and settings applied when editing the project files.
51
+
For example, let’s say your project requires python 2.7+, you want the maximum line length to be 512, and you want to ignore warnings about visual indents (pep8 errors E127 and E128):
52
52
53
-
*Create a Sublime Text project (*Project* -> *New workspace for a project*)
53
+
*If you have not already created a project in Sublime Text, select `Project -> Save Project As...`.
0 commit comments