Skip to content

Version 1.1.0 with `wps explain` CLI

Latest
Compare
Choose a tag to compare
@sobolevn sobolevn released this 25 Mar 10:33
· 25 commits to master since this release
be4f169

Command line utility

This version introduces wps CLI tool.
wps explain <code> command can be used to access WPS
violation docs (same as on website) but without any internet access.

Example output:
Снимок экрана 2025-03-25 в 13 33 04

Features

  • Adds WPS476: forbids to use await expressions in for loops, #1600
  • Adds WPS477: forbids TypeVarTuple after a TypeVar with a default, #3265

Bugfixes

  • Fixes WPS115 false-positive on Enum attributes, #3238
  • Removes duplicated WPS312, #3239
  • Fixes WPS432, now it shows literal num, #1402
  • Fixes WPS226, now it points to the first string literal occurrence, #3267
  • Fixes WPS605 false-positive on @staticmethod, #3292
  • Fixes _SELF name not to trigger WPS117, #3310
  • Fixes WPS221 being too strict with f-strings, #3350