diff --git a/linter.py b/linter.py index 61decb8..f88127c 100644 --- a/linter.py +++ b/linter.py @@ -18,10 +18,11 @@ class Flake8(PythonLinter): """Provides an interface to the flake8 python module/script.""" syntax = ('python', 'python3') - cmd = ('flake8', '*', '-') + cmd = ('flake8@python', '*', '-') version_args = '--version' version_re = r'^(?P\d+\.\d+\.\d+)' version_requirement = '>= 2.2.2' + check_version = True # The following regex marks these pyflakes and pep8 codes as errors. # All other codes are marked as warnings.