diff --git a/README.rst b/README.rst index 914147c..78c85b0 100644 --- a/README.rst +++ b/README.rst @@ -199,7 +199,7 @@ second usage. Save the result to a list if the result is needed multiple times. **B037**: Found ``return ``, ``yield``, ``yield ``, or ``yield from `` 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 ~~~~~~~~~~~~~~~~~~~~ @@ -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 @@ -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 ~~~~~~~ diff --git a/bugbear.py b/bugbear.py index f9605a5..6a3c2be 100644 --- a/bugbear.py +++ b/bugbear.py @@ -17,7 +17,7 @@ import attr import pycodestyle -__version__ = "24.1.17" +__version__ = "24.2.6" LOG = logging.getLogger("flake8.bugbear") CONTEXTFUL_NODES = (