]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: configure flake8 to ignore E203
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 7 Feb 2025 17:53:22 +0000 (12:53 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 11 Feb 2025 21:08:04 +0000 (16:08 -0500)
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 <jmulligan@redhat.com>
src/cephadm/tox.ini

index 4cf5161e1714ec3979508320d3f1abc5b28eacc4..751ff8c2558c50e4304b20be9c7e661da1790c8c 100644 (file)
@@ -13,6 +13,7 @@ max-line-length = 100
 inline-quotes = '
 ignore =
     E501,
+    E203,
     W503,
 exclude =
     .tox,