Skip to content

Commit

Permalink
Update CHANGES + move to version 24.2.6 to release
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlees committed Feb 7, 2024
1 parent 82357df commit 26096e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ second usage. Save the result to a list if the result is needed multiple times.

**B037**: Found ``return <value>``, ``yield``, ``yield <value>``, or ``yield from <value>`` in class ``__init__()`` method. No values should be returned or yielded, only bare ``return``\s are ok.

**B038**: Found a mutation of a mutable loop iterable inside the loop body. Changes to the iterable of a loop such as calls to `list.remove()` or via `del` can cause unintended bugs.
**B038**: **Moved to B909** - Found a mutation of a mutable loop iterable inside the loop body. Changes to the iterable of a loop such as calls to `list.remove()` or via `del` can cause unintended bugs.

Opinionated warnings
~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -248,6 +248,8 @@ This is meant to be enabled by developers writing visitors using the ``ast`` mod

**B908**: Contexts with exceptions assertions like ``with self.assertRaises`` or ``with pytest.raises`` should not have multiple top-level statements. Each statement should be in its own context. That way, the test ensures that the exception is raised only in the exact statement where you expect it.

**B909**: **Was B038** - Found a mutation of a mutable loop iterable inside the loop body. Changes to the iterable of a loop such as calls to `list.remove()` or via `del` can cause unintended bugs.

**B950**: Line too long. This is a pragmatic equivalent of
``pycodestyle``'s ``E501``: it considers "max-line-length" but only triggers
when the value has been exceeded by **more than 10%**. ``noqa`` and ``type: ignore`` comments are ignored. You will no
Expand Down Expand Up @@ -349,6 +351,12 @@ MIT
Change Log
----------

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
~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion bugbear.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import attr
import pycodestyle

__version__ = "24.1.17"
__version__ = "24.2.6"

LOG = logging.getLogger("flake8.bugbear")
CONTEXTFUL_NODES = (
Expand Down

0 comments on commit 26096e4

Please sign in to comment.