This linter plugin for Linter provides an interface to pycodestyle. It will be used with Python files.
Linter package must be installed in order to use this plugin. If Linter is not installed, please follow the instructions here.
Before using this plugin, you must ensure that pycodestyle
is installed on your
system. To install pycodestyle
, do the following:
Install pycodestyle by typing the following in a terminal:
pip install pycodestyle
Now you can proceed to install the linter-pycodestyle plugin.
apm install linter-pycodestyle
You can configure linter-pycodestyle from the settings menu:
executablePath Path to your pycodestyle executable. This is useful if you have different versions of pycodestyle for Python 2 and 3 or if you are using a virtualenv
maxLineLength The max line length for your python code, defaults to 79
ignoreErrorCodes A list of pycodestyle error codes to ignore. For a list of code visit http://pycodestyle.readthedocs.org/en/latest/intro.html#error-codes
Example: To ignore W191
and E501
you would enter something like this:
W191, E501