From 8356c7214d7e8061800c5979759bd0afa7ba6e8f Mon Sep 17 00:00:00 2001 From: per1234 Date: Fri, 24 Mar 2023 23:19:08 -0700 Subject: [PATCH] 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. --- .flake8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index efde3a0..57b9d24 100644 --- a/.flake8 +++ b/.flake8 @@ -6,7 +6,7 @@ [flake8] doctests = True # W503 and W504 are mutually exclusive. PEP 8 recommends line break before. -ignore = W503 +ignore = E501,W503 max-complexity = 10 max-line-length = 120 select = E,W,F,C,N