Skip to content

Commit 987e539

Browse files
committed
Update CHANGES.md, black format, update to version 21.11.28 for release
1 parent 9e14a8c commit 987e539

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

README.rst

+14-5
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,19 @@ The plugin currently has one setting:
215215
This could be useful, when using other libraries that provide more immutable calls,
216216
beside those already handled by ``flake8-bugbear``. Calls to these method will no longer raise a ``B008`` warning.
217217

218-
Tests
219-
-----
218+
Tests / Lints
219+
---------------
220220

221221
Just run::
222222

223223
coverage run tests/test_bugbear.py
224224

225225

226+
For linting::
227+
228+
pre-commit run -a
229+
230+
226231
License
227232
-------
228233

@@ -232,11 +237,15 @@ MIT
232237
Change Log
233238
----------
234239

235-
Unreleased
240+
21.11.28
236241
~~~~~~~~~~
237242

238-
* Update B014: ``binascii.Error`` is now treated as a subclass of ``ValueError``
239-
(#206)
243+
* B904: ensure the raise is in the same context with the except (#191)
244+
* Add Option to extend the list of immutable calls (#204)
245+
* Update B014: ``binascii.Error`` is now treated as a subclass of ``ValueError`` (#206)
246+
* add simple pre-commit config (#205)
247+
* Test with 3.10 official
248+
* Add B018 check to find useless declarations (#196, #202)
240249

241250
21.9.2
242251
~~~~~~~~~~

bugbear.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import attr
1313
import pycodestyle
1414

15-
__version__ = "21.9.2"
15+
__version__ = "21.11.28"
1616

1717
LOG = logging.getLogger("flake8.bugbear")
1818
CONTEXTFUL_NODES = (

tests/b904.py

+3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
def proxy():
2828
raise NameError
2929

30+
3031
try:
3132
from preferred_library import Thing
3233
except ImportError:
3334
try:
3435
from fallback_library import Thing
3536
except ImportError:
37+
3638
class Thing:
3739
def __getattr__(self, name):
3840
# same as the case above, should not emit.
@@ -45,6 +47,7 @@ def __getattr__(self, name):
4547
try:
4648
from fallback_library import Thing
4749
except ImportError:
50+
4851
def context_switch():
4952
try:
5053
raise ValueError

0 commit comments

Comments
 (0)