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
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
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.
23.2.13
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
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
Rename B028 to B907, making it optional/opinionated.
23.1.14
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
Add B905: zip() without an explicit strict= parameter. (#314)
B027: ignore @overload when typing is imported with other names (#309)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps flake8-bugbear from 21.9.2 to 23.6.5.
Release notes
Sourced from flake8-bugbear's releases.
... (truncated)
Commits
1ead17d
Update READEME + version for 23.6.5 release5200b56
include tox.ini in MANIFEST.in for sdist. (#389)a309029
Improve B033 (duplicate set items) (#385)27e12af
Fix typo in bugbear.py (#386)535c109
Update READEME + version for 23.5.9 releaseeb300be
Add B033: Duplicate items in sets (#373)3f16173
(3.8) Remove outdated sys.version_info checks (#375)d752c44
Add B908: Rule to check that assertRaises-like contexts has no more than 1 to...8c0e7eb
[pre-commit.ci] pre-commit autoupdate (#379)d4c77fe
B028: Allow stacklevel to be explicitly assigned as a positional argument (#374)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)