From f13cc878906f35f63acba322f9ab347a6cdab14a Mon Sep 17 00:00:00 2001 From: Sebastian Csar Date: Fri, 24 Nov 2023 12:08:26 -0800 Subject: [PATCH] Bump flake8, flake8-comprehensions and flake8-bugbear. (#341) * chore: Bump flake8, flake8-comprehensions and flake8-bugbear. flake8 version 6.0.0 had a bug that lead to false positives for E231 in Python 3.12 which was fixed in 6.1.0. This commit bumps flake8 to 6.1.0, flake8-comprehensions to 3.14.0, to pick up explicit support for Python 3.12, and flake8-bugbear to 23.9.16 to pick up support for 3.12 and a bugfix. --- .pre-commit-config.yaml | 2 +- CHANGELOG.md | 2 ++ tox.ini | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f0997d32..eae14a85 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: exclude: rednotebook/external/.*\.py - repo: https://github.com/pycqa/flake8 - rev: '6.0.0' + rev: '6.1.0' hooks: - id: flake8 diff --git a/CHANGELOG.md b/CHANGELOG.md index 660b0d07..acc359d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ # next (unreleased) +* Bump flake8, flake8-comprehensions and flake8-bugbear. (Sebastian Csar, +#341). * Switch to tomllib/tomli to support heterogeneous arrays (Sebastian Csar, #340). # 2.10 (2023-10-06) diff --git a/tox.ini b/tox.ini index af2c7f34..308fed9e 100644 --- a/tox.ini +++ b/tox.ini @@ -30,10 +30,10 @@ filterwarnings = basepython = python3 deps = black==22.3.0 - flake8==6.0.0 + flake8==6.1.0 flake8-2020==1.7.0 - flake8-bugbear==23.1.14 - flake8-comprehensions==3.10.1 + flake8-bugbear==23.9.16 + flake8-comprehensions==3.14.0 pyupgrade==2.28.0 allowlist_externals = bash