Skip to content

1.2.0

Choose a tag to compare

@sobolevn sobolevn released this 02 Jul 15:22
· 128 commits to master since this release
c952580

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 complex finally bodies, #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 WPS604 and WPS614 rules from the noqa.py, #3420
  • Fixes WPS115 false-positive on StrEnum, IntEnum, IntFlag attributes, #3381
  • Fixes WPS432, now it ignores magic numbers in Literal, #3397
  • Fixes WPS466 for generic type specifications MyClassDecorator[T], #3417
  • Fixes WPS212 to ignore nested classes and functions
    when counting return statements, #3413
  • Improves WPS349 highlighting, #3437

New Contributors

Full Changelog: 1.1.0...1.2.0