GitHub / PyCQA/flake8-bugbear / commits
A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
SHA | Message | Author | Date | Stats |
---|---|---|---|---|
6bf907ce | B909 improvements (#460) |
Martin Imre <m****5@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
28fe268a | [pre-commit.ci] pre-commit autoupdate (#461) |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
76a71f4a | Revert "Remove debug print seems was left" | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
23cf46df | Remove debug print seems was left | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
26096e4d | Update CHANGES + move to version 24.2.6 to release | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
82357dfc | feat(b038): Change B038 to B909 and make it optional (#456) |
Martin Imre <m****5@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
5c3f0bde | Remove decorators named validator and root_validator from B902 checks (#459) |
Nate McMaster <n****r@g****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
64fcdfd6 | Pre commit rst check (#458) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
58fb4fb7 |
[pre-commit.ci] pre-commit autoupdate (#457)
Co-authored-by: pre-commit-ci[bot] <6****]@u****m> |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
608df840 | Update CHANGES + move to version 24.1.17 to release | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
546d8332 | fix(b038): Restrict rule to mutating functions only (#453) |
Martin Imre <m****5@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
f365c212 | Update CHANGES + move to version 24.1.16 to release | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
56ac5c85 | Fix crash on raise with non-Name value (#450) |
Jelle Zijlstra <j****a@g****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
9fe5ca3b | Fix rst check yaml | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
b78cf05f | Add a rst syntax check to avoid invalid syntax in the future | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
1d63713a | Fix README.rst syntax to release | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
1cc695d2 | It's 2024 Cooper ... | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
c09afa5a | Update CHANGES + move to version 23.1.15 to release | Cooper Ry Lees <m****e@c****m> | over 1 year ago | |
9c100b6c | refactor(b038): Cleanup unused code in B038Checker (#448) |
Martin Imre <m****5@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
7c823afa |
feat(rules): Add rule to check for mutations of loop iterator (#446)
Co-authored-by: Cooper Lees <m****e@c****m> |
Martin Imre <m****5@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
6c96f753 | See if hypo* now work with 3.12 (#447) |
Cooper Lees <m****e@c****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
12c2dc46 | Implement B037 check for yielding or returning values in __init__() (#442) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
b4c661b5 |
[pre-commit.ci] pre-commit autoupdate (#444)
Co-authored-by: pre-commit-ci[bot] <6****]@u****m> |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
cb0287c7 |
[pre-commit.ci] pre-commit autoupdate (#443)
Co-authored-by: pre-commit-ci[bot] <6****]@u****m> |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
8a8ba7d6 | [pre-commit.ci] pre-commit autoupdate (#441) |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
b25c5bdd | make B017 also apply to BaseException (#439) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
dd4fec54 | Implement B036 check for `except BaseException` without re-raising (#438) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
a435545a |
Bump actions/setup-python from 4 to 5 (#436)
Co-authored-by: dependabot[bot] <4****]@u****m> Signed-off-by: dependabot[bot] <s****t@g****m> |
dependabot[bot] <4****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
e2e46ec6 |
[pre-commit.ci] pre-commit autoupdate (#437)
Co-authored-by: pre-commit-ci[bot] <6****]@u****m> |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 1 year ago | |
975b54d6 | Update CHANGES + move to version 23.12.2 to release | Cooper Ry Lees <m****e@c****m> | almost 2 years ago | |
89f950c1 | B018 to detect useless-statements at all levels (#434) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
4ca0e6bf | add classname to b018 useless-expression output (#433) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
6686e52f | include tuples in b018 useless-statement check (#432) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
09f44c38 | add flake8 python version check script and CI check (#431) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
eef0ee74 | Update CHANGES + version to for 23.11.28 release | Cooper Ry Lees <m****e@c****m> | almost 2 years ago | |
e0760c27 | B035: Fix false positive when named expressions are used (#429) (#430) |
David Salvisberg <d****e@d****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
053c817f | Update CHANGES + version to for 23.11.26 release | Cooper Ry Lees <m****e@c****m> | almost 2 years ago | |
aabaf1d1 | add flake8 w/ bugbear to pre-commit config (#427) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
5691df6b | update black version, and exclude the tests/b*** files from formatting checks... |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
7196efa5 | implement B035 check for static keys in dict-comprehension (#426) |
Ryan Downing <2****g@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
cfc24290 | B902: Add exceptions for standard library metaclasses (#415) |
Fabian Henze <3****f@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
393fea1e | #418: Modify B017 to no longer have a false negative when raises() is importe... |
azinneck0485 <1****5@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
907e0dd2 | Fix B026 on attributes (#420) |
Jelle Zijlstra <j****a@g****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
78d08a74 |
[pre-commit.ci] pre-commit autoupdate (#416)
Co-authored-by: pre-commit-ci[bot] <6****]@u****m>, Cooper Ry Lees <m****e@c****m> |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
f8fe3c4b | Update READEME + version for 23.9.16 release | Cooper Ry Lees <m****e@c****m> | almost 2 years ago | |
f75417c3 | add --classmethod-decorators (#405) |
John Litborn <1****l@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
d1a8f2bc | Upgrade black (#410) |
Shantanu <1****a@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
8bfbaaed |
Bump actions/checkout from 3 to 4 (#407)
Co-authored-by: dependabot[bot] <4****]@u****m> Signed-off-by: dependabot[bot] <s****t@g****m> |
dependabot[bot] <4****]@u****m>
Committed by: GitHub <n****y@g****m> |
almost 2 years ago | |
954e51eb | merge Merge pull request #406 from jakkdl/fix_python312 |
Zac Hatfield-Dodds <z****s@g****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
f2aaeb9d | fix name collision for node_stack on python 3.12 | jakkdl <h****b@p****e> | about 2 years ago | |
bf48278a | Use pypa/build to build the package (#404) |
Tomas R <t****8@g****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
45f8fc58 | [pre-commit.ci] pre-commit autoupdate (#401) |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
b62f1819 | Update READEME + version for 23.7.10 release | Cooper Ry Lees <m****e@c****m> | about 2 years ago | |
dea2e002 |
Add B034: re.sub/subn/split must pass flags/count/maxsplit as keyword argumen...
Co-authored-by: Jelle Zijlstra <j****a@g****m>, Jelle Zijlstra <j****a@g****m> |
John Litborn <1****l@u****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
f1c391a0 |
Add exclusions for B905 (#388)
Co-authored-by: Alexey Nikitin <a****n@s****m> |
Alexey Nikitin <3****d@u****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
a224d629 | Declare support for Python 3.12 (#400) |
Alex Waygood <A****d@G****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
c722166d | B907: fix crash and test failures on py312 (#399) |
Alex Waygood <A****d@G****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
f820ba8f | Avoid another source of deprecation warnings on py312 (#394) |
Alex Waygood <A****d@G****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
2763a13e | Remove use of the deprecated `ast.Constant.s` attribute (#392) |
Alex Waygood <A****d@G****m>
Committed by: GitHub <n****y@g****m> |
about 2 years ago | |
1ead17d6 | Update READEME + version for 23.6.5 release | Cooper Lees <c****r@m****m> | over 2 years ago | |
5200b560 | include tox.ini in MANIFEST.in for sdist. (#389) |
kyoto7250 <5****0@u****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
a309029e | Improve B033 (duplicate set items) (#385) |
Jelle Zijlstra <j****a@g****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
27e12af0 | Fix typo in bugbear.py (#386) |
Malaber <3****r@u****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
535c109e | Update READEME + version for 23.5.9 release | Cooper Ry Lees <m****e@c****m> | over 2 years ago | |
eb300be3 |
Add B033: Duplicate items in sets (#373)
Co-authored-by: Cooper Lees <m****e@c****m> |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
3f161734 |
(3.8) Remove outdated sys.version_info checks (#375)
Co-authored-by: Cooper Lees <m****e@c****m> |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
d752c444 |
Add B908: Rule to check that assertRaises-like contexts has no more than 1 to...
Co-authored-by: Cooper Lees <m****e@c****m>, Alexey Nikitin <a****n@s****m>, Cooper Lees <m****e@c****m> |
Alexey Nikitin <3****d@u****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
8c0e7eb0 |
[pre-commit.ci] pre-commit autoupdate (#379)
Co-authored-by: pre-commit-ci[bot] <6****]@u****m> |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
d4c77fe5 | B028: Allow stacklevel to be explicitly assigned as a positional argument (#374) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
fce31d4d | Update READEME + version for 23.3.23 release | Cooper Ry Lees <m****e@c****m> | over 2 years ago | |
03a0f405 | (3.8) Bump flake8 dependency to >=6.0.0 (#372) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
d28ff326 | Fix crash on unusual except handlers (#370) |
Jelle Zijlstra <j****a@g****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
fc4dde8d | (3.8) Minor tweaks (#368) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
a1103332 | (3.8) Replace deprecated ast literals (#366) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
b4404df9 | (3.8) Update CI and metadata (#367) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
63acfdc6 | Fix typo on version str | Cooper Ry Lees <m****e@c****m> | over 2 years ago | |
72794d5c | Update READEME + version for 23.3.12 release | Cooper Ry Lees <m****e@c****m> | over 2 years ago | |
5c85ef43 | B950: Ignores 'noqa' and 'type: ignore' comments (#162) (#358) |
Dawid <1****q@u****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
37bd2a07 |
Fix bug in b030 (#364)
Co-authored-by: Aaron Cunningham <a****u@e****m> |
Aaron Cunningham <a****m@o****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
dc34703c | Fix typos in docstring (#361) |
jaylangford <j****7@g****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
1bf567a3 |
B005: Do not flag on imported modules (#353)
Co-authored-by: Cooper Lees <m****e@c****m> |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
58dca8ba | B030: allow splats and calls (#354) |
Jelle Zijlstra <j****a@g****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
73238157 | Fix B029 typo (#355) |
Ganden Schaffner <g****r@p****e>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
fa49539b | Update release notes for 23.2.13 (#351) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
1d87dc8c | Update README + version for 23.2.13 release | Cooper Ry Lees <m****e@c****m> | over 2 years ago | |
76aa16bd | Add B032: Check for possible unintentional type annotations instead of assign... |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
a7c7ac95 | merge Merge pull request #347 from malthejorgensen/groupby-multiple-usages |
Zac Hatfield-Dodds <z****s@g****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
4087f49d |
[pre-commit.ci] pre-commit autoupdate (#348)
Co-authored-by: pre-commit-ci[bot] <6****]@u****m> |
pre-commit-ci[bot] <6****]@u****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
05a26c7e | Add B031: Warn when using `groupby()` result multiple times | Malthe Jørgensen <m****n@g****m> | over 2 years ago | |
9ea5a349 |
Introduce B030; fix crash on weird except handlers (#346)
Co-authored-by: pre-commit-ci[bot] <6****]@u****m> |
Jelle Zijlstra <j****a@g****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
315f4e7d |
Split B001 into B029 for empty tuple exception handling (#344)
Co-authored-by: Cooper Lees <m****e@c****m> |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
a25fa41d | Fix BO28 README typo (#343) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
e7bbdebd | Add a lint checking for warnings.warn stacklevel argument (#342) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
a2e0c951 | B016: Warn when raising f-strings (#341) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
37e7b287 | Update isort hook (#340) |
George <g****e@f****v>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
a70f0dda | B906: Add `visit_Bytes`, `visit_Num` and `visit_Str` to the list of ignored `... |
Alex Waygood <A****d@G****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
51d7111c | Recommend `.removeprefix()` or `.removesuffix()` in `B005` (#339) |
Max R <m****r@u****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
64d10cc2 | Update README + version for 23.1.20 release | Cooper Ry Lees <m****e@c****m> | over 2 years ago | |
5d9d7449 |
B024: don't warn on classes without methods (#336)
Co-authored-by: Zac Hatfield-Dodds <z****s@g****m>, Cooper Lees <m****e@c****m>, Zac Hatfield-Dodds <z****s@g****m>, pre-commit-ci[bot] <6****]@u****m> |
John Litborn <1****l@u****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago | |
e3fe79b8 | B017: don't warn when ``pytest.raises()`` has a ``match`` argument (#337) |
Nicola Soranzo <n****o@g****m>
Committed by: GitHub <n****y@g****m> |
over 2 years ago |