From f40df5af4e7cd8826d7558e4d289f7b39d20ab6b Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 16 Sep 2021 19:15:52 +0200 Subject: [PATCH] Ignore flake8 rule W503 By default, flake8 currently complains both when breaking before (W503) and after (W504) a binary operator. A choice needs to be made! Best practice evolved, around 2016, from breaking after to breaking before a binary operator. Therefore ignore W503. --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index fe05ee4f73..7074b31afd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,4 +3,4 @@ addopts = --cov=codespell_lib -rs --cov-report= --tb=short [flake8] exclude = build, ci-helpers -ignore = +ignore = W503