From 27d2820c33d94cd99aea128b6ade76a7de838c3d Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Tue, 16 Mar 2021 19:19:27 +0100 Subject: Enable flake8-bugbear, but disable most checks. (#9499) * Adds B00 to ignored checks. * Fixes remaining issues. --- setup.py | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index bbd9e7862a..b834e4e55b 100755 --- a/setup.py +++ b/setup.py @@ -99,6 +99,7 @@ CONDITIONAL_REQUIREMENTS["lint"] = [ "isort==5.7.0", "black==20.8b1", "flake8-comprehensions", + "flake8-bugbear", "flake8", ] -- cgit 1.5.1 From 83de0be4b0398e94e67c7110d9455db86592ead0 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 24 Mar 2021 07:35:43 -0400 Subject: Bump mypy-zope to 0.2.13. (#9678) This fixes an error ("Cannot determine consistent method resolution order (MRO)") when running mypy with a cache. --- changelog.d/9678.misc | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/9678.misc (limited to 'setup.py') diff --git a/changelog.d/9678.misc b/changelog.d/9678.misc new file mode 100644 index 0000000000..77a2b2d439 --- /dev/null +++ b/changelog.d/9678.misc @@ -0,0 +1 @@ +Bump mypy-zope to 0.2.13 to fix "Cannot determine consistent method resolution order (MRO)" errors when running mypy a second time. diff --git a/setup.py b/setup.py index b834e4e55b..1939a7b86b 100755 --- a/setup.py +++ b/setup.py @@ -103,7 +103,7 @@ CONDITIONAL_REQUIREMENTS["lint"] = [ "flake8", ] -CONDITIONAL_REQUIREMENTS["mypy"] = ["mypy==0.812", "mypy-zope==0.2.11"] +CONDITIONAL_REQUIREMENTS["mypy"] = ["mypy==0.812", "mypy-zope==0.2.13"] # Dependencies which are exclusively required by unit test code. This is # NOT a list of all modules that are necessary to run the unit tests. -- cgit 1.5.1 From 4609e58970a95768170ca8c8ab52abc1998b866c Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Fri, 2 Apr 2021 12:22:21 +0200 Subject: Fix version for bugbear (#9734) --- changelog.d/9734.misc | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/9734.misc (limited to 'setup.py') diff --git a/changelog.d/9734.misc b/changelog.d/9734.misc new file mode 100644 index 0000000000..20ed9a06a9 --- /dev/null +++ b/changelog.d/9734.misc @@ -0,0 +1 @@ +Pin flake8-bugbear's version. \ No newline at end of file diff --git a/setup.py b/setup.py index 1939a7b86b..29e9971dc1 100755 --- a/setup.py +++ b/setup.py @@ -99,7 +99,7 @@ CONDITIONAL_REQUIREMENTS["lint"] = [ "isort==5.7.0", "black==20.8b1", "flake8-comprehensions", - "flake8-bugbear", + "flake8-bugbear==21.3.2", "flake8", ] -- cgit 1.5.1