⭐ New
- Exempt parentheses around multi-line values in comprehensions (#43).
⭐ New
- Add support for
flake8
version7
(#41).
Thanks to @Apakottur for the contribution.
⭐ New
- Official support for Python 3.12 (#38, 6c311c0).
This is an almost empty patch as no breaking changes of Python 3.12 affect this plugin. Only documentation, project metadata as well as some tooling and testing needed adjustments.
🔧 Fixes
- Fix flake8 dependency being pinned to
~=3.7
(#36).
⭐ New
- Exempt parentheses around multi-line strings in tuples and lists (#34).
⭐ New
- Separate PAR101 codes into PAR101, PAR102, PAR103, PAR104 (#30; contribution by cyyc1)
⭐ New
- Add support for Python 3.11 (#28).
🔧 Fixes
- Fix exception for parentheses in slices under Python 3.9+ (#26).
🔧 Fixes
- Improve exceptions for redundant parentheses in multi-line cases + clarify documentation in that area (#25).
⭐ New
- Expanded exception for redundant parentheses that help to highlight operator precedence to also include unpacking arguments (
*
, and**
) before function arguments (#23). - Add exception for parentheses around multi-line
for
parts in comprehensions (#23).
🔧 Fixes
- Python 3.10: fix
match
/case
statements (#24).
♻ Rework of PAR0xx
(#22)
- Improved documentation around exceptions to the rules.
- Added exception for multiline keyword arguments and argument default values.
- Rewrite of the redundant parentheses checker (
PAR0xx
) to increase reliability, stability and performance.
🔧 Fixes
- Fix false positives caused by detecting logical lines incorrectly (#20).
- Fix false positives in classes in Python 3.7 (#20).
🔧 Fixes
- Fix complaining about necessary parentheses in multi-line unpacking assignments (#16).
- Fix not complaining about misaligned parentheses, brackets, braces when the opening line ends on a comment (#18).
🎉 Initial release