mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 23:04:48 +08:00
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:
@@ -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]
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -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',
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user