What's Changed
Rules
- [
flake8-simplify
] Ignorecollapsible-if
violations forif False:
andif True:
by @JonathanPlasse in #3732 - [
flake8-pie
] Extendunncessary-generator-any-all
to set comprehensions by @charliermarsh in #3824 - [
flake8-simplify
] Implementdict-get-with-none-default
(SIM910
) by @kyoto7250 in #3874 - [
flake8-annotations
] Additional simple magic return types by @dhruvmanila in #3805 - [
flake8-pyi
]: fix PYI015 false positive on assignment of TypeVar & friends by @bluetech in #3861
Bug Fixes
- Improve robustness of argument removal for
encode
calls by @charliermarsh in #3802 - Fix SIM222 and SIM223 false positive by @JonathanPlasse in #3832
- When checking module visibility, don't check entire ancestry by @Hnasar in #3835
- Improve top-of-file insertions for required imports by @charliermarsh in #3779
- Use multi-fix semantics for
inplace
removal by @charliermarsh in #3804 - Flag non-
Name
expressions induplicate-isinstance-call
by @charliermarsh in #3817 - Avoid
unnecessary-comprehension-any-all
for async generators by @charliermarsh in #3823 - Fix
is_module_name()
and improve perf ofis_identifier()
by @JonathanPlasse in #3795 - Allow starred arguments in B030 by @charliermarsh in #3871
- Support mutually exclusive branches for
B031
by @dhruvmanila in #3844 - Consider logger candidate from
logging
module only by @dhruvmanila in #3878
Core
- Add import insertion support to autofix capabilities by @charliermarsh in #3787
- Generate
ImportMap
from module path to imported dependencies by @chanman3388 in #3243
Docs
- Add documentation for
ruff-action
(GitHub Action!) by @brucearctor in #3857
New Contributors
- @AetherUnbound made their first contribution in #3806
- @Hnasar made their first contribution in #3835
- @nvuillam made their first contribution in #3848
- @brucearctor made their first contribution in #3857
Full Changelog: v0.0.260...v0.0.261