From 6665e45377b8b08c2b878dbf01e9695a589369da Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 1 Dec 2022 19:29:17 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20CI=20issue=20after=20flake8=20update?= =?UTF-8?q?=205=20=E2=86=92=206?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/PyCQA/flake8/issues/1760 Fix incorrect `setup.cfg` syntax. --- setup.cfg | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index 632de4f7..4f006334 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,14 +27,22 @@ all_files = 1 [flake8] ignore = - D205,D209,D400 # our docstrings are multi-line blobs - D302 # We don't care about Unicode docstrings - E731 # we occasionally use lambda - F403,F405 # we use * imports - Q001 # we use '''...''' multi-line strings - Q003 # don't force "" strings to avoid escaping quotes - T001,T201 # we use print statements in the update scripts - W504 # we put the binary operator on the preceding line + # our docstrings are multi-line blobs + D205,D209,D400, + # We don't care about Unicode docstrings + D302, + # we occasionally use lambda + E731, + # we use * imports + F403,F405, + # we use '''...''' multi-line strings + Q001, + # don't force "" strings to avoid escaping quotes + Q003, + # we use print statements in the update scripts + T001,T201, + # we put the binary operator on the preceding line + W504, max-complexity = 15 max-line-length = 120 extend-exclude = From 2865cc9dc77c328066c1254bb7d8d958cf11d780 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 1 Dec 2022 20:05:05 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20CI=20issue=20after=20flake8=20update?= =?UTF-8?q?=205=20=E2=86=92=206?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/PyCQA/flake8/issues/1760 Plugin flake8-quotes is now compatible with flake8 6.0, starting with release 3.3.2: https://github.com/zheller/flake8-quotes/pull/111 is merged. --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 81c352bb..3417f11d 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ setenv= [testenv:flake8] skip_install = true -deps = flake8<6.0 +deps = flake8 flake8-author flake8-blind-except flake8-bugbear @@ -24,7 +24,7 @@ deps = flake8<6.0 flake8-exact-pin flake8-isort flake8-print - flake8-quotes + flake8-quotes>=3.3.2 # for compatibility with flake8 6.0 flake8-tidy-imports flake8-tuple pep8-naming