File tree 1 file changed +2
-24
lines changed
1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change 1
- #
2
- # linter.py
3
- # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
4
- #
5
- # Written by Aparajita Fishman
6
- # Copyright (c) 2015-2016 The SublimeLinter Community
7
- # Copyright (c) 2013-2014 Aparajita Fishman
8
- #
9
- # License: MIT
10
- #
11
-
12
- """This module exports the PYCODESTYLE plugin linter class."""
13
-
14
-
15
1
from SublimeLinter .lint import PythonLinter
16
2
17
3
18
4
class PYCODESTYLE (PythonLinter ):
19
- """Provides an interface to the pep8 python module/script."""
20
-
21
- syntax = 'python'
22
- cmd = ('pycodestyle' , '*' , '-' )
23
- version_args = '--version'
24
- version_re = r'(?P<version>\d+\.\d+\.\d+)'
25
- version_requirement = '>= 1.4.6'
5
+ cmd = ('pycodestyle' , '${args}' , '-' )
26
6
regex = r'^.+?:(?P<line>\d+):(?P<col>\d+): (?:(?P<error>E\d+)|(?P<warning>W\d+)) (?P<message>.+)'
27
7
multiline = True
28
8
defaults = {
29
- '--select=,' : '' ,
30
- '--ignore=,' : '' ,
31
- '--max-line-length=' : None
9
+ 'selector' : 'source.python'
32
10
}
You can’t perform that action at this time.
0 commit comments