🚀 New issue to wemake-services/wemake-python-styleguide by @sobolevn
📝 `WPS226` false positive on fstring parts (#3548)
This code raises a violation:
When
Output:
This does not seem right, because strings that are part of
PR would be rather easy :)
#help_wanted #levelstarter #good_first_issue #bug
sent via relator
📝 `WPS226` false positive on fstring parts (#3548)
This code raises a violation:
x = f'single {1}'
y = f'single {1}'
When
--max-string-usage=1 is provided.Output:
1:5 WPS226 Found string literal over-use: single > 1
x = f'single {1}'
^
This does not seem right, because strings that are part of
f strings should not be counted by WPS226PR would be rather easy :)
#help_wanted #levelstarter #good_first_issue #bug
sent via relator
🚀 New issue to wemake-services/wemake-python-styleguide by @sobolevn
📝 Allow
String like
We need to add it to https://github.com/wemake-services/wemake-python-styleguide/blob/7f4f7ae24309149aa03d36846a96fb4410b8022e/wemakepythonstyleguide/visitors/ast/complexity/overuses.py#L37
#feature #goodfirstissue #levelstarter #help_wanted
sent via relator
📝 Allow
/ in WPS226 (#3554)String like
'/' must not raise string overuse violation, because / is very common in url buildings / path building.We need to add it to https://github.com/wemake-services/wemake-python-styleguide/blob/7f4f7ae24309149aa03d36846a96fb4410b8022e/wemakepythonstyleguide/visitors/ast/complexity/overuses.py#L37
#feature #goodfirstissue #levelstarter #help_wanted
sent via relator