v0.0.250
What's Changed
Ruff now supports all Python 3.10 and 3.11 language features, including:
- Structural Pattern Patching (
match
statements) (PEP 634) - Exception Groups (
except*
statements) (PEP 654)
Rules
- [
flake8-bugbear
] Add B029 (except-with-empty-tuple
) from flake8-bugbear by @carlosmiei in #3068 - [
flake8-bugbear
] Add B032 (unintentional-type-annotation
) from flake8_bugbear by @carlosmiei in #3085 - [
tryceratops
]: Add TRY401 (verbose-log-messages
) by @colin99d in #3036 - [
flake8-simplify
]: Add SIM116 (manual-dict-lookup
) by @colin99d in #2767
Features
- Add support for TryStar by @charliermarsh in #3089
- Add support for structural pattern matching by @charliermarsh in #3047
Bug Fixes
- [
flake8-pytest
] Use LibCST to fix chained assertions by @charliermarsh in #3087 - [
flake8-boolean-trap
] Avoid boolean-trap rules for positional-only builtin calls by @charliermarsh in #3075 - [
flake8-boolean-trap
] Ignore setters in flake8-boolean-trap by @charliermarsh in #3092 - [
flake8-return
] Omitwhile-True
loops from implicit return enforcement by @charliermarsh in #3076
New Contributors
- @carlosmiei made their first contribution in #3068
Full Changelog: v0.0.249...v0.0.250