From: John Mulligan Date: Fri, 7 Feb 2025 17:53:22 +0000 (-0500) Subject: cephadm: configure flake8 to ignore E203 X-Git-Tag: v20.3.0~256^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2cf03ab740bab75bbaed1ce8a093a1aeec05769b;p=ceph.git cephadm: configure flake8 to ignore E203 The black formatting tool and flake8 linter's default settings disagree about how to handle spacing around ':' characters in slices. Use your favorite search engine with the terms "python black flake8 E203" and see various discussions of this topic. Many seem to conclude that it is E203 that is not pep8 compliant. Go with the flow and just disable E203 so we can continue to use `format-black` without extra additional thought :-). Signed-off-by: John Mulligan --- diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 4cf5161e171..751ff8c2558 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -13,6 +13,7 @@ max-line-length = 100 inline-quotes = ' ignore = E501, + E203, W503, exclude = .tox,