github wemake-services/wemake-python-styleguide 1.9.0
Version 1.9.0

45 minutes ago

What's Changed

Features

  • Adds WPS484: forbid strings that look like docstrings
    but document nothing, #3808
  • Adds WPS367: forbid using #: comments, #3823
  • Adds yes to banned names in WPS110, #3845
  • Extends WPS617 to support checking lambda values assigned
    via tuple unpacking, #3863
  • WPS237 now forbids nested replacement fields
    in format specifiers, like {value:{spec}}, #3888
  • Disallows __lazy_modules__ as module metadata, # 3891

Bugfixes

  • Fixes WPS237 reporting single format specifiers
    like :b, :o, :d, :.2%, :.2g, :.2E as too complex, #3888
  • Fixes WPS237 reporting violation on the first string component
    instead of the complex placeholder in implicitly concatenated
    formatted strings, #3874
  • Fixes WPS235: ignore imports from typing and typing_extensions, #3824
  • Fixes wps explain: now we replace RST roles with readable plain text, #3787
  • Fixes the MCP server only starting from a repository checkout:
    now it runs with python -m wemake_python_styleguide.mcp, #3859
  • Fixes the missing [mcp] extra hint breaking the MCP stdio protocol:
    now it goes to stderr, #3859
  • Fixes WPS221 counting literal parts of f-strings and t-strings one by one:
    now each formatted part ({...} placeholder) counts as one
    and all literal parts count as one in total, #3820

Misc

  • Bundles the wps agent skill inside the Python package
    for Library Skills discovery, #3843
  • Adds typing-extensions as a direct dependency, #3849

New Contributors

Full Changelog: 1.8.1...1.9.0

Don't miss a new wemake-python-styleguide release

NewReleases is sending notifications on new releases.