You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
or logger.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 itertools imported under another name, e.g. it.batched() and it.cycle() after import itertools as it
B007, B020: also check async for loops
B017, B022: check every item of a multi-item with statement, not just the
first one, e.g. with open(path), pytest.raises(Exception):
README: add Avoid/Prefer code examples for B004, B007 and B034