File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -215,14 +215,19 @@ The plugin currently has one setting:
215215This could be useful, when using other libraries that provide more immutable calls,
216216beside 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
221221Just run::
222222
223223 coverage run tests/test_bugbear.py
224224
225225
226+ For linting::
227+
228+ pre-commit run -a
229+
230+
226231License
227232-------
228233
@@ -232,11 +237,15 @@ MIT
232237Change 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
24125021.9.2
242251~~~~~~~~~~
Original file line number Diff line number Diff line change 1212import attr
1313import pycodestyle
1414
15- __version__ = "21.9.2 "
15+ __version__ = "21.11.28 "
1616
1717LOG = logging .getLogger ("flake8.bugbear" )
1818CONTEXTFUL_NODES = (
Original file line number Diff line number Diff line change 2727 def proxy ():
2828 raise NameError
2929
30+
3031try :
3132 from preferred_library import Thing
3233except 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
You can’t perform that action at this time.
0 commit comments