v0.0.286
github-actions
released this
25 Aug 19:46
·
4131 commits
to main
since this release
What's Changed
New Rules
- [
flake8-bugbear
] Updatefunction-call-in-argument-default
(B008
) to ignore arguments with immutable annotations by @zanieb in #6784 - [
flake8-bugbear
] Updatemutable-argument-default
(B006
) to useextend-immutable-calls
when determining if annotations are immutable by @zanieb in #6781 - [
flake8-pie
] Implementunnecessary-range-start
(PIE808
) by @harupy in #6690 - [
flake8-pytest-style
] Add autofix forPT014
by @harupy in #6698 - [
pylint
] Implementno-self-use
(R6301
) by @LaBatata101 in #6574 - [
pylint
] Extendrepeated-equality-comparison-target
to check for mixed orderings and Yoda conditions. by @tjkuson in #6691
Settings
- Make isort's
detect-same-package
behavior configurable by @charliermarsh in #6833
Bug Fixes
- Apply RUF017 when start is passed via position by @hauntsaninja in #6664
- Use
typing_extensions.TypeAlias
for PYI026 fixes on pre-3.10 by @charliermarsh in #6696 - Ignore multi-comparisons in
repeated-equality-comparison-target
by @charliermarsh in #6705 - Accept empty inner calls in C414 by @charliermarsh in #6725
- Allow next in FBT exclusions by @charliermarsh in #6729
- Allow
ctypes.WinError()
in flake8-raise by @charliermarsh in #6731 - Ignore star imports when importing symbols in fixes by @charliermarsh in #6743
- Support C419 autofixes for set comprehensions by @charliermarsh in #6744
- Avoid attempting to fix unconventional submodule imports by @charliermarsh in #6745
- Don't trigger
eq-without-hash
when__hash__
is explicitly set toNone
by @LaBatata101 in #6739 - Avoid E231 if comma is at end-of-line by @charliermarsh in #6747
- Truncate some messages in diagnostics by @charliermarsh in #6748
- Fix isolation groups for unused imports by @charliermarsh in #6774
- Avoid fixing D200 for docstrings that end in escapes by @charliermarsh in #6779
- Parenthesize expressions prior to LibCST parsing by @charliermarsh in #6742
- Fallback to end-of-file if ends in trailing continuation by @charliermarsh in #6789
- Confine repeated-equality-comparison-target to names and attributes by @charliermarsh in #6802
- Fix
native-literals
handling of int literal with attribute access by @zanieb in #6792 - Fix
uncessary-coding-comment
fix when there's leading content by @zanieb in #6775 - Avoid attempting to fix PT018 in multi-statement lines by @charliermarsh in #6829
- Update ERA100 to apply to commented dictionary items with trailing comments by @zanieb in #6822
- Avoid parsing other parts of a format specification if replacements are present by @zanieb in #6858
- Avoid panic in unused arguments rule for parameter-free lambda by @charliermarsh in #6679
- Avoid
C417
forlambda
with default and variadic parameters by @dhruvmanila in #6752 - Add
networkx
to conventional aliases by @zanieb in #6778 - Skip serializing cell ID if it's None by @harupy in #6851
- fix is_raw_string for multiple prefixes by @davidszotten in #6865
- Add jupyter notebook cell ids in 4.5+ if missing by @konstin in #6853
Full Changelog: v0.0.285...v0.0.286