Skip to content

Commit a7bde58

Browse files
Feat: allow / in WPS226 (#3554) (#3555)
1 parent 7f4f7ae commit a7bde58

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ Semantic versioning in our case means:
2424
- Adds `WPS481`: for statement not allowed in class and module scopes, #3520
2525

2626

27+
## 1.6.0
28+
29+
### Features
30+
31+
- Allows `/` string in `WPS226`, #3554
32+
33+
2734
## 1.5.0
2835

2936
### Features

tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_string.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def test_string_type_annotations(
239239
r'"\n"',
240240
'""',
241241
'","',
242+
'"/"',
242243
'"."',
243244
"'\"'",
244245
'"\'"',

wemake_python_styleguide/visitors/ast/complexity/overuses.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ class StringOveruseVisitor(base.BaseNodeVisitor):
4646
'|',
4747
'"',
4848
"'",
49+
'/',
4950
'...',
5051
b'"',
5152
b"'",
53+
b'/',
5254
b' ',
5355
b'.',
5456
b',',

0 commit comments

Comments
 (0)