From 1fbf7251ccdb58ba93301622388615633ecc348a Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 16 Jun 2019 16:39:03 +0100 Subject: [PATCH] Add W503 to default flake8 ignore list (#894) W503 and W504 are mutually exclusive, to do with splitting binary operators across lines. Black reformats code according to W504, putting the operator on the start of the newline, therefore W503 needs to be ignored in the suggested Flake8 config to use with Black. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d30fe69..986efb6 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,7 @@ you are probably already using. You'd do it like this: max-line-length = 80 ... select = C,E,F,W,B,B950 -ignore = E501 +ignore = E501,W503 ``` You'll find *Black*'s own .flake8 config file is configured like this. -- 2.39.2