- B914: Add an optional check for implicit string concatenation on one line inside
brackets or call arguments, where a comma is probably missing (#156) - B009, B010, B043: don't flag a private
__nameinside a class, where
obj.__namewould be name-mangled and not equivalent - B031: avoid
IndexErrorcrash on empty or 1-element tuple targets in
itertools.groupby()loops and support 2-element list unpacking targets - B909: check annotated subscript assignments inside loops.
- B023: don't flag a lambda that is called right where it is defined, e.g.
(lambda: x)() - B040: still report when the only call is
fut.exception(),task.exception()
orlogger.exception(..., exc_info=False), which don't show the caught exception - B018, B031, B911: a function parameter named
map,groupby,batched
and so on means the bare name isn't the builtin/itertools one, like a local
variable of that name already did - B031, B905, B911: recognize
itertoolsimported under another name, e.g.
it.batched()andit.cycle()afterimport itertools as it - B007, B020: also check
async forloops - B017, B022: check every item of a multi-item
withstatement, not just the
first one, e.g.with open(path), pytest.raises(Exception): - README: add Avoid/Prefer code examples for B004, B007 and B034