Skip to content

Commit faa711b

Browse files
committed
Ignore W504 in flake8
PEP 8 recommends to break a long line after a binary operator. That's used in the current code. In the past PEP 8 wasn't so specific and W504 appeared in flake8. This one makes flake8 ignore W504. For details see PyCQA/pycodestyle#498
1 parent 3324d12 commit faa711b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ commands =
2323
# D103: Missing docstring in public function
2424
# D104: Missing docstring in public package
2525
# D401: First line should be in imperative mood; try rephrasing
26-
ignore = D100, D101, D102, D103, D104, D401
26+
# W504: line break before binary operator
27+
ignore = D100, D101, D102, D103, D104, D401, W504
2728
max-line-length = 100
2829
exclude =
2930
.tox,

0 commit comments

Comments
 (0)