File tree 3 files changed +18
-6
lines changed
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:
215
215
This could be useful, when using other libraries that provide more immutable calls,
216
216
beside those already handled by ``flake8-bugbear ``. Calls to these method will no longer raise a ``B008 `` warning.
217
217
218
- Tests
219
- -----
218
+ Tests / Lints
219
+ ---------------
220
220
221
221
Just run::
222
222
223
223
coverage run tests/test_bugbear.py
224
224
225
225
226
+ For linting::
227
+
228
+ pre-commit run -a
229
+
230
+
226
231
License
227
232
-------
228
233
@@ -232,11 +237,15 @@ MIT
232
237
Change Log
233
238
----------
234
239
235
- Unreleased
240
+ 21.11.28
236
241
~~~~~~~~~~
237
242
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)
240
249
241
250
21.9.2
242
251
~~~~~~~~~~
Original file line number Diff line number Diff line change 12
12
import attr
13
13
import pycodestyle
14
14
15
- __version__ = "21.9.2 "
15
+ __version__ = "21.11.28 "
16
16
17
17
LOG = logging .getLogger ("flake8.bugbear" )
18
18
CONTEXTFUL_NODES = (
Original file line number Diff line number Diff line change 27
27
def proxy ():
28
28
raise NameError
29
29
30
+
30
31
try :
31
32
from preferred_library import Thing
32
33
except ImportError :
33
34
try :
34
35
from fallback_library import Thing
35
36
except ImportError :
37
+
36
38
class Thing :
37
39
def __getattr__ (self , name ):
38
40
# same as the case above, should not emit.
@@ -45,6 +47,7 @@ def __getattr__(self, name):
45
47
try :
46
48
from fallback_library import Thing
47
49
except ImportError :
50
+
48
51
def context_switch ():
49
52
try :
50
53
raise ValueError
You can’t perform that action at this time.
0 commit comments