SublimeLinter-flake8
SublimeLinter plugin for python, using flake8.
Details
Installs
- Total 126K
- Win 53K
- Mac 41K
- Linux 33K
Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 2 | 4 | 3 | 9 | 9 | 10 | 3 | 9 | 7 | 6 | 6 | 2 | 3 | 3 | 3 | 5 | 8 | 5 | 5 | 2 | 1 | 3 | 3 | 4 | 2 | 3 | 4 | 4 | 3 | 9 | 6 | 4 | 7 | 5 | 2 | 4 | 4 | 3 | 0 | 5 | 4 | 6 | 3 | 8 | 8 |
Mac | 1 | 1 | 1 | 4 | 2 | 2 | 4 | 0 | 4 | 4 | 2 | 5 | 3 | 0 | 3 | 5 | 1 | 4 | 1 | 2 | 9 | 11 | 6 | 4 | 3 | 1 | 1 | 1 | 3 | 2 | 1 | 2 | 3 | 4 | 2 | 0 | 1 | 2 | 1 | 3 | 4 | 0 | 0 | 0 | 5 | 4 |
Linux | 1 | 2 | 4 | 3 | 2 | 3 | 2 | 2 | 3 | 3 | 2 | 5 | 3 | 2 | 0 | 4 | 3 | 1 | 5 | 9 | 3 | 3 | 8 | 3 | 3 | 1 | 1 | 4 | 1 | 1 | 5 | 2 | 8 | 1 | 1 | 25 | 27 | 3 | 9 | 3 | 3 | 0 | 1 | 4 | 3 | 3 |
Readme
- Source
- raw.githubusercontent.com
SublimeLinter-flake8
This linter plugin for SublimeLinter provides an interface to flake8.
Installation
SublimeLinter must be installed in order to use this plugin.
Install via Package Control or git clone
as usual.
Ensure that a flake8
is actually installed somewhere on your system. Typically, pip install flake8
on the command line will do that.
If you want to use a globally installed flake, make sure that it is available on the PATH. Before going any further, please read and follow the steps in “Finding a linter executable” through “Validating your PATH” in the documentation.
Otherwise configure “executable” or the “python” setting.
If you use pipenv, and you're working on a project with a Pipfile, everything should be automatic.
Settings
- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html
- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html
Additional settings:
ignore_fixables
(default:True
): filter warnings that Sublime can fix automatically (e.g. trailing white-space) on save.
SublimeLinter-flake8 works with common flake8 configuration files and inline overrides. Note that by default the working dir is set to an open folder attached to the current window of Sublime. Edit this setting if your config files are located in a subfolder, for example.
Use “args” if you want to pass additional command line arguments to flake8
.
Compatibility with --per-file-ignores
and other flake8 plugins
SublimeLinter-flake8 is compatible with most flake8 plugins out of the box. However, plugins that rely on selecting or ignoring certain files based on filename may appear to be “broken” due to the way SublimeLinter runs during linting. This includes flake8's own --per-file-ignores
option introduced in 3.7.0, as well as plugins such as flake8-aaa and flake8-pyi.
To make the source filename available to the flake8
executable again, pass the --stdin-display-name
option using SublimeLinter's “args” setting:
"args": ["--stdin-display-name", "${file:stdin}"]
Including the :stdin
fallback ensures that files that have yet to be saved are still linted.