SublimeLinter-flake8
SublimeLinter plugin for python, using flake8.
Details
Installs
- Total 125K
- Win 52K
- Mac 41K
- Linux 32K
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 1 | 3 | 7 | 0 | 2 | 2 | 0 | 0 | 2 | 5 | 5 | 4 | 8 | 8 | 3 | 6 | 5 | 4 | 3 | 1 | 3 | 3 | 3 | 4 | 1 | 3 | 6 | 8 | 5 | 3 | 7 | 4 | 1 | 1 | 5 | 4 | 7 | 5 | 0 | 7 | 6 | 9 | 4 | 7 | 5 |
Mac | 0 | 3 | 0 | 1 | 4 | 5 | 2 | 0 | 0 | 2 | 2 | 1 | 2 | 4 | 4 | 5 | 2 | 1 | 1 | 0 | 1 | 3 | 0 | 3 | 3 | 1 | 2 | 5 | 11 | 3 | 3 | 0 | 0 | 1 | 1 | 4 | 1 | 5 | 1 | 2 | 4 | 5 | 4 | 4 | 2 | 4 |
Linux | 1 | 1 | 0 | 3 | 2 | 0 | 2 | 0 | 0 | 2 | 9 | 2 | 2 | 0 | 4 | 3 | 1 | 4 | 0 | 2 | 1 | 4 | 3 | 4 | 6 | 1 | 1 | 1 | 4 | 1 | 3 | 2 | 4 | 2 | 2 | 5 | 6 | 6 | 6 | 0 | 2 | 2 | 3 | 4 | 1 | 0 |
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.