Skip to content

Commit 515ff00

Browse files
authored
Increase minimal supported version of flake8 and match flake8 requirements to PyLS ones (#805)
1 parent 22251fa commit 515ff00

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

setup.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@
4848
extras_require={
4949
'all': [
5050
'autopep8',
51-
'flake8',
52-
'mccabe',
53-
'pycodestyle',
51+
'flake8>=3.8.0',
52+
'mccabe>=0.6.0,<0.7.0',
53+
'pycodestyle>=2.6.0,<2.7.0',
5454
'pydocstyle>=2.0.0',
55-
'pyflakes>=1.6.0,<2.2.0',
55+
'pyflakes>=2.2.0,<2.3.0',
5656
'pylint',
5757
'rope>=0.10.5',
5858
'yapf',
5959
],
6060
'autopep8': ['autopep8'],
61-
'flake8': ['flake8'],
62-
'mccabe': ['mccabe'],
63-
'pycodestyle': ['pycodestyle'],
61+
'flake8': ['flake8>=3.8.0'],
62+
'mccabe': ['mccabe>=0.6.0,<0.7.0'],
63+
'pycodestyle': ['pycodestyle>=2.6.0,<2.7.0'],
6464
'pydocstyle': ['pydocstyle>=2.0.0'],
65-
'pyflakes': ['pyflakes>=1.6.0,<2.2.0'],
65+
'pyflakes': ['pyflakes>=2.2.0,<2.3.0'],
6666
'pylint': ['pylint'],
6767
'rope': ['rope>0.10.5'],
6868
'yapf': ['yapf'],

test/plugins/test_flake8_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_flake8_no_checked_file(config, workspace):
3535

3636
doc = Document('', workspace, DOC)
3737
diags = flake8_lint.pyls_lint(config, doc)
38-
assert diags == []
38+
assert 'Error' in diags[0]['message']
3939

4040

4141
def test_flake8_lint(config):

0 commit comments

Comments
 (0)