Update to flake8 3.8.x

In particular this improves support for detecting usage of various
type annotation usages and adds support for correctly parsing
type: ignore comments which contain a reason tag.
This commit is contained in:
Peter Law
2020-07-21 21:34:58 +01:00
parent 6ef18bea50
commit 5e6138d16f
3 changed files with 5 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ ignore =
E721, E721,
# Line break before binary operator # Line break before binary operator
W503, W503,
# Single letter loop variables are often fine
E741,
exclude = jedi/third_party/* .tox/* exclude = jedi/third_party/* .tox/*
[pycodestyle] [pycodestyle]

View File

@@ -45,7 +45,7 @@ setup(name='jedi',
'Django<3.1', # For now pin this. 'Django<3.1', # For now pin this.
], ],
'qa': [ 'qa': [
'flake8==3.7.9', 'flake8==3.8.3',
], ],
}, },
package_data={'jedi': ['*.pyi', 'third_party/typeshed/LICENSE', package_data={'jedi': ['*.pyi', 'third_party/typeshed/LICENSE',

View File

@@ -125,7 +125,7 @@ def test_get_signatures_whitespace(Script):
abs( abs(
def x(): def x():
pass pass
""") # noqa """)
assert_signature(Script, s, 'abs', 0, line=1, column=5) assert_signature(Script, s, 'abs', 0, line=1, column=5)