• Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 11 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SublimeLinter plugin for python, using flake8.

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 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.

More Repositories

1

SublimeLinter

The code linting framework for Sublime Text
Python
2,011
star
2

SublimeLinter-eslint

This linter plugin for SublimeLinter provides an interface to ESLint
Python
865
star
3

SublimeLinter-jshint

SublimeLinter plugin for JavaScript, using jshint.
Python
460
star
4

SublimeLinter-shellcheck

This linter plugin for SublimeLinter provides an interface to shellcheck.
Python
210
star
5

SublimeLinter-php

SublimeLinter 3 plugin for PHP, using php -l.
Python
209
star
6

SublimeLinter-jscs

Deprecated SublimeLinter 3 plugin for jscs
Python
199
star
7

SublimeLinter-csslint

SublimeLinter plugin for CSS, using csslint.
Python
172
star
8

SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
Python
159
star
9

SublimeLinter-html-tidy

SublimeLinter 3 plugin for html tidy.
Python
126
star
10

SublimeLinter-flow

SublimeLinter plugin for JavaScript static type checking, using flow.
Python
117
star
11

SublimeLinter-pylint

SublimeLinter plugin for python, using pylint.
Python
116
star
12

SublimeLinter-jsxhint

Deprecated SublimeLinter 3 plugin for JSX - use ESLint instead
Python
116
star
13

SublimeLinter-pep8

Deprecated SublimeLinter plugin for pep8, use pycodestyle instead
Python
107
star
14

SublimeLinter-annotations

SublimeLinter plugin that marks annotations such as TODO, FIXME, etc.
Python
106
star
15

SublimeLinter-json

SublimeLinter plugin for JSON.
Python
83
star
16

SublimeLinter-phplint

SublimeLinter plugin for PHP, using phplint.
Python
73
star
17

SublimeLinter-tslint

tslint plugin for SublimeLinter. Lint your typescript code.
Python
72
star
18

SublimeLinter-phpcs

SublimeLinter plugin for PHP, using phpcs.
Python
71
star
19

SublimeLinter-ruby

SublimeLinter plugin for ruby, using ruby -wc.
Python
60
star
20

SublimeLinter-mypy

mypy static type checking for python
Python
54
star
21

SublimeLinter-pycodestyle

SublimeLinter plugin for python, using pycodestyle.
Python
44
star
22

SublimeLinter-pyflakes

SublimeLinter plugin for python, using pyflakes.
Python
43
star
23

SublimeLinter-javac

SublimeLinter 3 plugin for Java, using javac -Xlint.
Python
39
star
24

SublimeLinter-coffeelint

SublimeLinter plugin for CoffeeScript, using coffeelint.
Python
38
star
25

SublimeLinter-stylelint

This linter plugin for SublimeLinter provides an interface to stylelint.
Python
31
star
26

SublimeLinter-golangcilint

This linter plugin for SublimeLinter provides an interface to golangci-lint.
Python
31
star
27

SublimeLinter-xmllint

SublimeLinter 3 plugin for XML, using xmllint.
Python
29
star
28

SublimeLinter-luacheck

SublimeLinter 3 plugin for lua, using luacheck
Python
28
star
29

SublimeLinter-cppcheck

This linter plugin for SublimeLinter provides an interface to cppcheck.
Python
27
star
30

SublimeLinter-golint

This linter plugin for SublimeLinter provides an interface to golint.
Python
24
star
31

package_control_channel

Private channel for Package Control
Python
24
star
32

SublimeLinter-clang

SublimeLinter plugin for C/C++, using clang
Python
23
star
33

SublimeLinter-pug-lint

SublimeLinter plugin for Pug (formerly Jade), using pug-lint
Python
23
star
34

SublimeLinter-chktex

LaTeX linter plugin for SublimeLinter 3, using chktex.
Python
22
star
35

SublimeLinter-gcc

This linter plugin for SublimeLinter provides an interface to gcc or other gcc-like (cross-)compiler.
Python
22
star
36

SublimeLinter-cpplint

This linter plugin for SublimeLinter provides an interface to cpplint.
Python
21
star
37

SublimeLinter-gotype

This linter plugin for SublimeLinter provides an interface to gotype.
Python
21
star
38

SublimeLinter-lua

SublimeLinter 3 plugin for Lua, using luac -p.
Python
20
star
39

SublimeLinter-coffee

SublimeLinter plugin for CoffeeScript, using coffee --compile.
Python
20
star
40

SublimeLinter-govet

This linter plugin for SublimeLinter provides an interface to go vet.
Python
19
star
41

SublimeLinter-template

A template for new linter plugins
Python
15
star
42

SublimeLinter-phpmd

SublimeLinter plugin for php, using phpmd.
Python
15
star
43

SublimeLinter-haml

SublimeLinter 3 plugin for Haml, using haml -c.
Python
14
star
44

SublimeLinter-gjslint

SublimeLinter plugin for JavaScript, using gjslint.
Python
14
star
45

SublimeLinter-pyyaml

Deprecated plugin for SublimeLinter for pyyaml. Use yamllint instead.
Python
14
star
46

SublimeLinter-bandit

SublimeLinter plugin for Python, using bandit
Python
12
star
47

SublimeLinter-pydocstyle

SublimeLinter plugin for python, using pydocstyle.
Python
10
star
48

SublimeLinter-rst

Deprecated SublimeLinter plugin for reStructuredText, using docutils.
Python
9
star
49

SublimeLinter-ghc

SublimeLinter 3 plugin for Haskell, using ghc -Wall.
Python
8
star
50

SublimeLinter-hlint

SublimeLinter plugin for hlint.
Python
8
star
51

SublimeLinter-jsl

SublimeLinter plugin for JavaScript, using JavaScript Linter (jsl).
Python
7
star
52

SublimeLinter-mdl

This linter plugin for SublimeLinter provides an interface to Markdown Lint Tool (mdl)
Python
7
star
53

SublimeLinter-haml-lint

SublimeLinter 3 plugin for Haml, using haml-lint.
Python
4
star
54

SublimeLinter-erlc

SublimeLinter plugin for Erlang, using erlc
Python
3
star
55

SublimeLinter-rome

SublimeLinter plugin to provide an interface to Rome
Python
2
star
56

SublimeLinter-vale

Plugin for SublimeLinter to provide an interface to Vale
Python
1
star
57

SublimeLinter-raml-cop

SublimeLinter plugin for RAML, using raml-cop.
Python
1
star