Skip to content

Releases: PyCQA/flake8-bugbear

24.1.15

15 Jan 23:12

Choose a tag to compare

  • B038: Add check for mutations of loop iterator (#446)
  • B037: Add check for yielding or returning values in init() (#442)
  • B017: make B017 also apply to BaseException (#439)
  • B036: Add check for except BaseException without re-raising (#438)

23.12.2

02 Dec 22:58

Choose a tag to compare

  • B018: to detect useless-statements at all levels (#434)
  • B018: Add classname to b018 useless-expression output (#433)
  • B018: Include tuples in b018 useless-statement check (#432)

23.11.28

29 Nov 05:10

Choose a tag to compare

  • B035: Fix false positive when named expressions are used (#430)

23.11.26

27 Nov 03:56

Choose a tag to compare

  • B035: add check for static keys in dict-comprehension (#426)
  • B902: Add exceptions for standard library metaclasses (#415)
  • B017: Modify to no longer have a false negative when raises() is imported
    directly from pytest (#424)
  • B026: Fix bug where the check was not triggered for calls where the caller
    is an attribute (#420)

23.9.16

16 Sep 20:25

Choose a tag to compare

  • add --classmethod-decorators (#405)
  • fix name collision for node_stack on python 3.12 (#406)
  • Use pypa/build to build the package (#404)

23.7.10

10 Jul 16:29

Choose a tag to compare

  • Add B034: re.sub/subn/split must pass flags/count/maxsplit as keyword arguments.
  • Fix a crash and several test failures on Python 3.12, all relating to the B907
    check.
  • Declare support for Python 3.12.

23.6.5

05 Jun 16:20

Choose a tag to compare

  • Include tox.ini in MANIFEST.in for sdist. (#389)
  • Improve B033 (duplicate set items) (#385)

23.5.9

09 May 23:57

Choose a tag to compare

  • Add B033: Detect duplicate items in sets
  • Add B908: Detect assertRauses like contexts only has top level statements that could throw
  • Add B028: Allow stacklevel to be explicitly assigned as a positional argument
  • Remove more < 3.8 checks / assertions

23.3.23

23 Mar 14:45

Choose a tag to compare

  • flake8-bugbear is now >= 3.8.1 project like flake8>=6.0.0
    • This has allowed some more modern AST usage cleanup and less CI running etc.
  • B030: Fix crash on certain unusual except handlers (e.g. except a[0].b:)

23.3.12

12 Mar 21:30

Choose a tag to compare

  • B950: now ignores 'noqa' and 'type: ignore' comments.
  • B005: Do not flag when using the strip() method on an imported module.
  • B030: Allow calls and starred expressions in except handlers.