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
This linter plugin for [SublimeLinter](http://sublimelinter.readthedocs.org) provides an interface to [pep8](https://github.com/jcrocholl/pep8). It will be used with files that have the “Python” syntax.
6
+
This linter plugin for [SublimeLinter](http://sublimelinter.readthedocs.org) provides an interface to [pycodestyle](https://github.com/PyCQA/pycodestyle). It will be used with files that have the “Python” syntax.
7
7
8
8
## Installation
9
9
SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions [here](http://sublimelinter.readthedocs.org/en/latest/installation.html).
10
10
11
11
### Linter installation
12
-
Before installing this plugin, you must ensure that `pep8` is installed on your system. To install `pep8`, do the following:
12
+
Before installing this plugin, you must ensure that `pycodestyle` is installed on your system. To install `pycodestyle`, do the following:
13
13
14
14
1. For best performance, install [Python 3](http://python.org) and [pip](http://www.pip-installer.org/en/latest/installing.html).
15
15
16
-
1. Install `pep8` by typing the following in a terminal, replacing '3.x' with the available version of pip:
16
+
1. Install `pycodestyle` by typing the following in a terminal, replacing '3.x' with the available version of pip:
17
17
```
18
-
[sudo] pip-3.x install pep8
18
+
[sudo] pip-3.x install pycodestyle
19
19
```
20
20
21
-
**Note:** This plugin requires `pep8` 1.4.6 or later.
21
+
**Note:** This plugin requires `pycodestyle` 1.4.6 or later.
22
22
23
23
### Linter configuration
24
-
In order for `pep8` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in [“Finding a linter executable”](http://sublimelinter.readthedocs.org/en/latest/troubleshooting.html#finding-a-linter-executable) through “Validating your PATH” in the documentation.
24
+
In order for `pycodestyle` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in [“Finding a linter executable”](http://sublimelinter.readthedocs.org/en/latest/troubleshooting.html#finding-a-linter-executable) through “Validating your PATH” in the documentation.
25
25
26
-
Once `pep8` is installed and configured, you can proceed to install the SublimeLinter-pep8 plugin if it is not yet installed.
26
+
Once `pycodestyle` is installed and configured, you can proceed to install the SublimeLinter-pycodestyle plugin if it is not yet installed.
27
27
28
28
### Plugin installation
29
29
Please use [Package Control](https://sublime.wbond.net/installation) to install the linter plugin. This will ensure that the plugin will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.
@@ -32,12 +32,12 @@ To install via Package Control, do the following:
32
32
33
33
1. Within Sublime Text, bring up the [Command Palette](http://docs.sublimetext.info/en/sublime-text-3/extensibility/command_palette.html) and type `install`. Among the commands you should see `Package Control: Install Package`. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.
34
34
35
-
1. When the plugin list appears, type `pep8`. Among the entries you should see `SublimeLinter-pep8`. If that entry is not highlighted, use the keyboard or mouse to select it.
35
+
1. When the plugin list appears, type `pycodestyle`. Among the entries you should see `SublimeLinter-pycodestyle`. If that entry is not highlighted, use the keyboard or mouse to select it.
36
36
37
37
## Settings
38
38
For general information on how SublimeLinter works with settings, please see [Settings](http://sublimelinter.readthedocs.org/en/latest/settings.html). For information on generic linter settings, please see [Linter Settings](http://sublimelinter.readthedocs.org/en/latest/linter_settings.html).
39
39
40
-
In addition to the standard SublimeLinter settings, SublimeLinter-pep8 provides its own settings. Those marked as “Inline Setting” or “Inline Override” may also be [used inline](http://sublimelinter.readthedocs.org/en/latest/settings.html#inline-settings).
40
+
In addition to the standard SublimeLinter settings, SublimeLinter-pycodestyle provides its own settings. Those marked as “Inline Setting” or “Inline Override” may also be [used inline](http://sublimelinter.readthedocs.org/en/latest/settings.html#inline-settings).
@@ -46,7 +46,7 @@ In addition to the standard SublimeLinter settings, SublimeLinter-pep8 provides
46
46
|max-line-length|The maximum allowed line length. `null` uses the PEP8 default of 79.|✓||
47
47
48
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
+
Typically you will want to configure pycodestyle on a per-project basis to conform to the coding style for all files in that project. Usually you want to ignore certain pycodestyle warnings. First you need to find the pycodestyle error codes from the [pycodestyle documentation](http://pep8.readthedocs.org/en/latest/intro.html#error-codes). Then you need to configure the pep8 linter to ignore those warnings.
50
50
51
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
@@ -61,7 +61,7 @@ For example, let’s say your project requires python 2.7+, you want the maximum
0 commit comments