diff --git a/CHANGELOG.md b/CHANGELOG.md index 99985d02b..edb3c7736 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,13 @@ Semantic versioning in our case means: - Adds `WPS481`: for statement not allowed in class and module scopes, #3520 +## 1.6.0 + +### Features + +- Allows `/` string in `WPS226`, #3554 + + ## 1.5.0 ### Features diff --git a/tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_string.py b/tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_string.py index c505b0c89..f33281168 100644 --- a/tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_string.py +++ b/tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_string.py @@ -239,6 +239,7 @@ def test_string_type_annotations( r'"\n"', '""', '","', + '"/"', '"."', "'\"'", '"\'"', diff --git a/wemake_python_styleguide/visitors/ast/complexity/overuses.py b/wemake_python_styleguide/visitors/ast/complexity/overuses.py index 19e47aeda..b05dd543d 100644 --- a/wemake_python_styleguide/visitors/ast/complexity/overuses.py +++ b/wemake_python_styleguide/visitors/ast/complexity/overuses.py @@ -46,9 +46,11 @@ class StringOveruseVisitor(base.BaseNodeVisitor): '|', '"', "'", + '/', '...', b'"', b"'", + b'/', b' ', b'.', b',',