From 0eaafa0e621af888958ea85ffb8667912acaf7ab Mon Sep 17 00:00:00 2001 From: Matthew Hughes Date: Sun, 8 Dec 2024 12:53:26 +0000 Subject: [PATCH] Update `bugbear` And fix some issues from new `bugbear`: tests/unit/test_setuptools_command.py:15:5: B036 Don't except `BaseException` unless you plan to re-raise it. tests/unit/test_setuptools_command.py:30:5: B036 Don't except `BaseException` unless you plan to re-raise it. --- poetry.lock | 16 ++++++++-------- pyproject.toml | 2 +- tests/unit/test_setuptools_command.py | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/poetry.lock b/poetry.lock index bdf1bf07..92f2b8e6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -606,22 +606,22 @@ pyflakes = ">=3.2.0,<3.3.0" [[package]] name = "flake8-bugbear" -version = "22.12.6" +version = "24.12.12" description = "A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8.1" groups = ["dev"] files = [ - {file = "flake8-bugbear-22.12.6.tar.gz", hash = "sha256:4cdb2c06e229971104443ae293e75e64c6107798229202fbe4f4091427a30ac0"}, - {file = "flake8_bugbear-22.12.6-py3-none-any.whl", hash = "sha256:b69a510634f8a9c298dfda2b18a8036455e6b19ecac4fe582e4d7a0abfa50a30"}, + {file = "flake8_bugbear-24.12.12-py3-none-any.whl", hash = "sha256:1b6967436f65ca22a42e5373aaa6f2d87966ade9aa38d4baf2a1be550767545e"}, + {file = "flake8_bugbear-24.12.12.tar.gz", hash = "sha256:46273cef0a6b6ff48ca2d69e472f41420a42a46e24b2a8972e4f0d6733d12a64"}, ] [package.dependencies] -attrs = ">=19.2.0" -flake8 = ">=3.0.0" +attrs = ">=22.2.0" +flake8 = ">=6.0.0" [package.extras] -dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit", "tox"] +dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit", "pytest", "tox"] [[package]] name = "ghp-import" @@ -2516,4 +2516,4 @@ plugins = ["setuptools"] [metadata] lock-version = "2.1" python-versions = ">=3.9.0" -content-hash = "ebc79567ed8f436ba0772e5e7bf6c16b4d034d7e70e923d25e447c6deca40e3c" +content-hash = "8d6e3a300c9bfde5b9781f6c2b52eb7fdb5787e2b65c3d165072c35d113fe3b2" diff --git a/pyproject.toml b/pyproject.toml index eb10237a..c83aedac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ cruft = ">=2.12.0" example-isort-sorting-plugin = ">=0.1.0" example-shared-isort-profile = ">=0.1.0" flake8 = ">=3.8.4" -flake8-bugbear = ">=22.12.6,<23.0.0" +flake8-bugbear = ">=22.12.12" httpx = ">=0.13.3" hypothesis = ">=6.10.1" hypothesmith = ">=0.1.3" diff --git a/tests/unit/test_setuptools_command.py b/tests/unit/test_setuptools_command.py index ba7157ff..cc2b9450 100644 --- a/tests/unit/test_setuptools_command.py +++ b/tests/unit/test_setuptools_command.py @@ -12,7 +12,7 @@ def test_isort_command_smoke(src_dir): command.finalize_options() try: command.run() - except BaseException: + except SystemExit: pass command.distribution.package_dir = {"": "isort"} @@ -27,5 +27,5 @@ def test_isort_command_smoke(src_dir): command.finalize_options() try: command.run() - except BaseException: + except SystemExit: pass