Skip to content

Commit d27b6a5

Browse files
committed
Added version requirement.
1 parent 7e8fb2a commit d27b6a5

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Before installing this plugin, you must ensure that `pep8` is installed on your
1616
[sudo] pip-3.x install pep8
1717
```
1818

19+
**Note:** This plugin requires `pep8` 1.4.6 or later.
20+
1921
### Linter configuration
2022
In order for `pep8` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in [“Finding a linter executable”](http://sublimelinter.readthedocs.org/en/latest/troubleshooting.html#finding-a-linter-executable) through “Validating your PATH” in the documentation.
2123

linter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class PEP8(PythonLinter):
2121

2222
syntax = ('python', 'python django')
2323
cmd = ('pep8@python', '*', '-')
24+
version_args = '--version'
25+
version_re = r'(?P<version>\d+\.\d+\.\d+)'
26+
version_requirement = '>= 1.4.6'
2427
regex = r'^.+?:(?P<line>\d+):(?P<col>\d+): (?:(?P<error>E)|(?P<warning>W))\d+ (?P<message>.+)'
2528
multiline = True
2629
defaults = {

0 commit comments

Comments
 (0)