From 5e6138d16f867063c46d3e0302d953b6be1df60b Mon Sep 17 00:00:00 2001 From: Peter Law Date: Tue, 21 Jul 2020 21:34:58 +0100 Subject: [PATCH] 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. --- setup.cfg | 2 ++ setup.py | 2 +- test/test_api/test_call_signatures.py | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 39633dc1..6929ce30 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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] diff --git a/setup.py b/setup.py index 044d7d5a..bf9be8c2 100755 --- a/setup.py +++ b/setup.py @@ -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', diff --git a/test/test_api/test_call_signatures.py b/test/test_api/test_call_signatures.py index 59e3a640..2f0cf90c 100644 --- a/test/test_api/test_call_signatures.py +++ b/test/test_api/test_call_signatures.py @@ -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)