ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter-flake​8

by SublimeLinter ST3

SublimeLinter plugin for python, using flake8.

Details

Installs

  • Total 74K
  • Win 28K
  • OS X 26K
  • Linux 20K
Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8
Windows 47 67 34 31 46 48 60 56 42 33 32 40 61 47 55 36 27 32 53 52 48 26 24 21 13 28 28 26 36 30 9 20 29 16 34 37 32 12 17 31 38 41 42 31 25 16
OS X 21 20 7 17 18 25 30 23 31 13 10 22 32 29 28 21 17 12 20 18 19 18 18 10 12 17 21 33 36 30 10 10 14 29 43 19 24 11 9 25 28 39 32 21 12 22
Linux 18 13 12 8 19 14 13 25 17 14 13 25 18 17 16 25 10 11 20 12 17 15 23 10 5 14 28 27 17 9 8 8 12 20 11 27 24 7 10 14 14 25 25 12 10 18

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-flake8

Build Status

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

Additional setting:

  • '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. This is of importance if your config files are located in a subfolder for example.

Use “args” if you want to set some arguments just like on the command line.

Compatibility with flake8 Plugins

SublimeLinter-flake8 is compatible with most flake8 plugins out of the box. However, some plugins, such as flake8-aaa and flake8-pyi, select or ignore certain files based on filenames. During linting runs in SublimeLinter-flake8, these filenames are not available to flake8 and its plugins, and these plugins may appear to be “broken”. A workaround for flake8 v3.0.0 and higher is to add "--stdin-display-name ${file}" to the “args” setting.