Skip to content

Commit

Permalink
Update bugbear
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthewhughes934 committed Jan 20, 2025
1 parent 373ca64 commit 544d4db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_setuptools_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand All @@ -27,5 +27,5 @@ def test_isort_command_smoke(src_dir):
command.finalize_options()
try:
command.run()
except BaseException:
except SystemExit:
pass

0 comments on commit 544d4db

Please sign in to comment.