What's Changed
Features
- Adds
WPS484: forbid strings that look like docstrings
but document nothing, #3808 - Adds
WPS367: forbid using#:comments, #3823 - Adds
yesto banned names inWPS110, #3845 - Extends
WPS617to support checkinglambdavalues assigned
via tuple unpacking, #3863 WPS237now forbids nested replacement fields
in format specifiers, like{value:{spec}}, #3888- Disallows
__lazy_modules__as module metadata, # 3891
Bugfixes
- Fixes
WPS237reporting single format specifiers
like:b,:o,:d,:.2%,:.2g,:.2Eas too complex, #3888 - Fixes
WPS237reporting violation on the first string component
instead of the complex placeholder in implicitly concatenated
formatted strings, #3874 - Fixes
WPS235: ignore imports fromtypingandtyping_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 withpython -m wemake_python_styleguide.mcp, #3859 - Fixes the missing
[mcp]extra hint breaking the MCP stdio protocol:
now it goes tostderr, #3859 - Fixes
WPS221counting 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
wpsagent skill inside the Python package
for Library Skills discovery, #3843 - Adds
typing-extensionsas a direct dependency, #3849
New Contributors
- @Tejaraju0 made their first contribution in #3826
- @bernalalexis-try made their first contribution in #3822
- @vishaalinimanikandan made their first contribution in #3837
- @skatromb made their first contribution in #3845
- @3oFiz4 made their first contribution in #3882
- @mccalpink made their first contribution in #3889
- @nibirietz made their first contribution in #3891
Full Changelog: 1.8.1...1.9.0