Skip to content

Conversation

@pyup-bot
Copy link
Collaborator

This PR updates flake8-bugbear from 22.6.22 to 24.10.31.

Changelog

24.10.31

* B041: New dictionary same key AND value check (496)
* B037: Fix typo in error message
* B024: No longer treats assigned class variables as abstract (471)
* Bump required attrs version to 22.2.0

24.8.19

* B910: implement to suggest using Counter() instead of defaultdict(int) (489)
* B901: Do not trigger with explicit Generator return type (481)
* B008: add some comments, rename b008_extend_immutable_calls (476)
* B040: exception with note added not reraised or used (477)
* B039, Add ``ContextVar`` with mutable literal or function call as default
* B040: Add Exception with added note not reraised. (474)
* Run tests in Python 3.13
* Type annotated code (481 + 483)
* Replace hash with unsafe_hash (486)

24.4.26

* B909: Fix false positive affecting containers of mutables (469)

24.4.21

* B950: Add pragma comment to line length ignores (463)
* B909: Add more cases to detect + more container mutating functions (460)

24.2.6

* B902: Remove decorators named validator and root_validator from B902 checks (459)
* B038: Change B038 to B909 and make it optional (456)

24.1.17

* B038: Restrict rule to mutation functions only (453)

24.1.16

* B036: Fix crash on ``raise`` statements raising something other than

24.1.15

* B038: Add check for mutations of loop iterator (446)
* B037: Add check for yielding or returning values in __init__() (442)
* B017: make B017 also apply to BaseException (439)
* B036: Add check for except BaseException without re-raising (438)

23.12.2

* B018: to detect useless-statements at all levels (434)
* B018: Add classname to b018 useless-expression output (433)
* B018: Include tuples in b018 useless-statement check (432)

23.11.28

* B035: Fix false positive when named expressions are used (430)

23.11.26

* B035: add check for static keys in dict-comprehension (426)
* B902: Add exceptions for standard library metaclasses (415)
* B017: Modify to no longer have a false negative when raises() is imported
directly from pytest (424)
* B026: Fix bug where the check was not triggered for calls where the caller
is an attribute (420)

23.9.16

* add --classmethod-decorators (405)
* fix name collision for node_stack on python 3.12 (406)
* Use pypa/build to build the package (404)

23.7.10

* Add B034: re.sub/subn/split must pass flags/count/maxsplit as keyword arguments.
* Fix a crash and several test failures on Python 3.12, all relating to the B907
check.
* Declare support for Python 3.12.

23.6.5

* Include tox.ini in MANIFEST.in for sdist. (389)
* Improve B033 (duplicate set items) (385)

23.5.9

* Add B033: Detect duplicate items in sets
* Add B908: Detect assertRauses like contexts only has top level statements that could throw
* Add B028: Allow stacklevel to be explicitly assigned as a positional argument
* Remove more < 3.8 checks / assertions

23.3.23

* flake8-bugbear is now >= 3.8.1 project like flake8>=6.0.0
* This has allowed some more modern AST usage cleanup and less CI running etc.
* B030: Fix crash on certain unusual except handlers (e.g. ``except a[0].b:``)

23.3.12

* B950: now ignores 'noqa' and 'type: ignore' comments.
* B005: Do not flag when using the ``strip()`` method on an imported module.
* B030: Allow calls and starred expressions in except handlers.

23.2.13

* B906: Add ``visit_Bytes``, ``visit_Num`` and ``visit_Str`` to the list of ``visit_*``
functions that are ignored by the B906 check. The ``ast.Bytes``, ``ast.Num`` and
``ast.Str`` nodes are all deprecated, but may still be used by some codebases in
order to maintain backwards compatibility with Python 3.7.
* B016: Warn when raising f-strings.
* Add B028: Check for an explicit stacklevel keyword argument on the warn method from the warnings module.
* Add B029: Check when trying to use ``except`` with an empty tuple i.e. ``except: ()``.
* Add B032: Check for possible unintentional type annotations instead of assignments.

23.1.20

* B024: now ignores classes without any methods. (336)
* B017: Don't warn when ``pytest.raises()`` has a ``match`` argument. (334)
* B906: Ignore ``visit_`` functions with a ``_fields`` attribute that can't contain ast.AST subnodes. (330)

23.1.17

* Rename B028 to B907, making it optional/opinionated.

23.1.14

* Add B906: ``visit_`` function with no further calls to a ``visit`` function. (313)
* Add B028: Suggest ``!r`` when formatted value in f-string is surrounded by quotes. (319)

22.12.6

* Add B905: `zip()` without an explicit `strict=` parameter. (314)
* B027: ignore overload when typing is imported with other names (309)

22.10.27

* B027: Ignore overload decorator (306)
* B023: Also fix map (305)
* B023: Avoid false alarms with filter, reduce, key= and return. Added tests for functools (303)

22.10.25

* Make B015 and B018 messages slightly more polite (298)
* Add B027: Empty method in abstract base class with no abstract decorator
* Multiple B024 false positive fixes
* Move CI to use `tox` (294)
* Move to using PEP621 / `pyproject.toml` package (291)
* Tested in 3.11

22.9.23

* add B026: find argument unpacking after keyword argument (287)
* Move to setup.cfg like flake8 (288)

22.9.11

* Add B025: Find duplicate except clauses (284)

22.8.23

* Add B024 error code to message for B024 (276)

22.8.22

* Add B024: abstract base class with no abstract methods (273)

22.7.1

* Implement late-binding loop check (265)
* [late-binding closures are a classic gotcha](https://docs.python-guide.org/writing/gotchas/#late-binding-closures>).
Links

@pyup-bot pyup-bot added the dependencies Pull requests that update a dependency file label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants