1.2.0
Main changes
Due to PEP-695, it's now allowed
to use [] in decorators only for python3.12+.
@MyClassDecorator[T, V]
def some_function(): ...Features
- Adds
WPS243: forbids complexfinallybodies, #3458 - Adds
WPS478: forbids using non strict slice operations, #1011 - Adds
WPS479: forbids using multiline fstrings, #3405 - Adds
WPS480: forbids using comments inside formatted string, #3404
Bugfixes
- Removes unnecessary
WPS604andWPS614rules from thenoqa.py, #3420 - Fixes
WPS115false-positive onStrEnum,IntEnum,IntFlagattributes, #3381 - Fixes
WPS432, now it ignores magic numbers inLiteral, #3397 - Fixes
WPS466for generic type specificationsMyClassDecorator[T], #3417 - Fixes
WPS212to ignore nested classes and functions
when countingreturnstatements, #3413 - Improves
WPS349highlighting, #3437
New Contributors
- @LordGvozd made their first contribution in #3362
- @NikitaSemenovAiforia made their first contribution in #3382
- @wjqsm made their first contribution in #3403
- @mkaraev made their first contribution in #3411
- @joscha made their first contribution in #3421
- @MIXgleb made their first contribution in #3423
- @dgtrv made their first contribution in #3431
- @alexeev-prog made their first contribution in #3461
Full Changelog: 1.1.0...1.2.0