1
0
forked from VimPlug/jedi

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,
# Line break before binary operator
W503,
# Single letter loop variables are often fine
E741,
exclude = jedi/third_party/* .tox/*
[pycodestyle]

View File

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

View File

@@ -122,10 +122,10 @@ def test_multiple_signatures(Script):
def test_get_signatures_whitespace(Script):
s = dedent("""\
abs(
abs(
def x():
pass
""") # noqa
""")
assert_signature(Script, s, 'abs', 0, line=1, column=5)