v0.0.285
github-actions
released this
17 Aug 21:24
·
4633 commits
to main
since this release
What's Changed
New rules
- [
flake8-pytest-style
] Implementpytest-unittest-raises-assertion
(PT027
) by @harupy in #6554 - [
flake8-pytest-style
] Implementpytest-duplicate-parametrize-test-cases
(PT014
) by @harupy in #6598 - [
flake8-tidy-imports
] Implementbanned-module-level-imports
(TID253
) by @durumu in #6378 - [
pylint
] Implementbad-dunder-name
(W3201
) (in the Ruff nursery) by @LaBatata101 in #6486 - [
pylint
] Implementsubprocess-run-check
(W1510
) by @tjkuson in #6487 - [
ruff
] Implementquadratic-list-summation
(RUF017
) by @evanrittenhouse in #6489
Rule changes
- [
flake8-bugbear
] Add autofix forB006
by @qdegraaf in #6131 - [
flake8-pyi
] Avoid applyingPYI055
to runtime-evaluated annotations by @charliermarsh in #6457 - [
flake8-self
] Allowos._exit
accesses inSLF001
by @charliermarsh in #6490 - [
perflint
] IgnorePERF203
iftry
contains loop control flow statements by @evanrittenhouse in #6536 - [
pylint
] Check for invalid format type specifiers in nested replacements forPLE1300
by @zanieb in #6616 - [
tryceratops
] OmitNotImplementedError
fromTRY003
by @charliermarsh in #6568
Settings
- Respect
.ipynb
and.pyi
sources when linting from stdin by @charliermarsh in #6628 - Support glob patterns for
raises_require_match_for
andraises_require_match_for
by @harupy in #6635
Bug Fixes
- Make
lambda-assignment
fix always-manual in class bodies by @charliermarsh in #6626 - Fix counting of message arguments when msg is provided as a keyword by @charliermarsh in #6456
- Add container types to
E721
by @charliermarsh in #6469 - Respect scoping rules when identifying builtins by @charliermarsh in #6468
- Respect tab width in line-length heuristic by @charliermarsh in #6491
- Respect dummy-variable-rgx for unused bound exceptions by @charliermarsh in #6492
- Fix detection of top-level imports with newlines in
E402
by @charliermarsh in #6526 - Allow if-expression with dual string arms in
invalid-envvar-value
by @charliermarsh in #6538 - Add deprecated unittest assertions to PT009 by @charliermarsh in #6572
- Avoid unused argument rules when functions call
locals()
by @charliermarsh in #6578 - Allow top-level
await
in Jupyter notebooks by @charliermarsh in #6607 - Don't detect
pandas#values
for stores, deletes, or class accesses by @charliermarsh in #6631 - Avoid removing parentheses in
E712
fix by @charliermarsh in #6575 - Skip whitespace between comments at start of file e.g. for
I002
by @durumu in #6523 - Add support for nested replacements inside format specifications e.g. for
PLE1300
by @zanieb in #6616
Playground
- Shared playground links now use short URLs by @charliermarsh in #6383
- Fix possible JSON parse error on playground load by @charliermarsh in #6519
- Fix unreachable panic in playground by @MichaReiser in #6623
Performance
- Improve tokenizer performance for ASCII only identifiers by @MichaReiser in #6609
New Contributors
- @magic-akari made their first contribution in #6472
- @durumu made their first contribution in #6378
- @jamesbraza made their first contribution in #6520
- @takumaw made their first contribution in #6533
- @noklam made their first contribution in #6573
- @Teraskull made their first contribution in #6605
Full Changelog: v0.0.284...v0.0.285