Skip to content

Commit 84e1146

Browse files
committed
cleanup for sl4
1 parent d028ff5 commit 84e1146

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

linter.py

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,10 @@
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-
151
from SublimeLinter.lint import PythonLinter
162

173

184
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}', '-')
266
regex = r'^.+?:(?P<line>\d+):(?P<col>\d+): (?:(?P<error>E\d+)|(?P<warning>W\d+)) (?P<message>.+)'
277
multiline = True
288
defaults = {
29-
'--select=,': '',
30-
'--ignore=,': '',
31-
'--max-line-length=': None
9+
'selector': 'source.python'
3210
}

0 commit comments

Comments
 (0)