Skip to content

Commit 8356c72

Browse files
committed
Resolve conflict between Black and Flake8 code styles
The project uses the Arduino tooling standard target line length of 120. Flake8's rule E501 uses this as a hard limit, erroring if any line in a Python file exceeds it. Black uses 120 as a target length, but may format some lines longer than 120 when it considers complying with the limit to be harmful. So rule E501 must be disabled. The line length limit will still be enforced by the formatting check.
1 parent 8866d4a commit 8356c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[flake8]
77
doctests = True
88
# W503 and W504 are mutually exclusive. PEP 8 recommends line break before.
9-
ignore = W503
9+
ignore = E501,W503
1010
max-complexity = 10
1111
max-line-length = 120
1212
select = E,W,F,C,N

0 commit comments

Comments
 (0)