Skip to content

Releases: PyCQA/flake8-bugbear

23.2.13

13 Feb 18:02

Choose a tag to compare

  • B906: Add visit_Bytes, visit_Num and visit_Str to the list of visit_*
    functions that are ignored by the B906 check. The ast.Bytes, ast.Num and
    ast.Str nodes are all deprecated, but may still be used by some codebases in
    order to maintain backwards compatibility with Python 3.7.
  • B016: Warn when raising f-strings.
  • Add B028: Check for an explicit stacklevel keyword argument on the warn method from the warnings module.
  • Add B029: Check when trying to use except with an empty tuple i.e. except: ().
  • Add B032: Check for possible unintentional type annotations instead of assignments.

23.1.20

20 Jan 21:18

Choose a tag to compare

  • B024: now ignores classes without any methods. (#336)
  • B017: Don't warn when pytest.raises() has a match argument. (#334)
  • B906: Ignore visit_ functions with a _fields attribute that can't contain ast.AST subnodes. (#330)

23.1.17

18 Jan 00:38

Choose a tag to compare

  • Rename B028 to B907, making it optional/opinionated.

23.1.14

14 Jan 11:59

Choose a tag to compare

  • Add B906: visit_ function with no further calls to a visit function. (#313)
  • Add B028: Suggest !r when formatted value in f-string is surrounded by quotes. (#319)

22.12.6

06 Dec 19:06

Choose a tag to compare

  • Add B905: zip() without an explicit strict= parameter. (#314)
  • B027: ignore @overload when typing is imported with other names (#309)

22.10.27

26 Oct 22:37

Choose a tag to compare

  • B027: Ignore @overload decorator (#306)
  • B023: Also fix map (#305)
  • B023: Avoid false alarms with filter, reduce, key= and return. Added tests for functools (#303)

22.10.25

24 Oct 23:24

Choose a tag to compare

  • Make B015 and B018 messages slightly more polite (#298)
  • Add B027: Empty method in abstract base class with no abstract decorator
  • Multiple B024 false positive fixes
  • Move CI to use tox (#294)
  • Move to using PEP621 / pyproject.toml package (#291)
  • Tested in 3.11

22.9.23

23 Sep 17:46

Choose a tag to compare

  • add B026: find argument unpacking after keyword argument (#287)
  • Move to setup.cfg like flake8 (#288)

22.9.11

11 Sep 19:15

Choose a tag to compare

  • Add B025: Find duplicate except clauses (#284)

22.8.23

23 Aug 15:30

Choose a tag to compare

  • Add B024 error code to message for B024 (#276)