File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed
Expand file tree Collapse file tree 1 file changed +2
-21
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-
151from SublimeLinter .lint import PythonLinter
162
173
184class 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}' , '-' )
266 regex = r'^.+?:(?P<line>\d+):(?P<col>\d+): (?:(?P<error>E\d+)|(?P<warning>W\d+)) (?P<message>.+)'
277 multiline = True
288 defaults = {
9+ 'selector' : 'source.python' ,
2910 '--select=,' : '' ,
3011 '--ignore=,' : '' ,
3112 '--max-line-length=' : None
You can’t perform that action at this time.
0 commit comments