From: John Mulligan Date: Fri, 1 Nov 2024 18:38:53 +0000 (-0400) Subject: cepadm: update tox.init to use latest flake 8 versions X-Git-Tag: v20.0.0~647^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=881d111aa010939535337ae464c9a8a8db72c13d;p=ceph.git cepadm: update tox.init to use latest flake 8 versions Allow the test env to use the latest flake8. This gets us a working version of flak8 on python3.12 and matches the tox configuration in src/pybind/mgr. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index b999a0f552b..d643b1ba74f 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -12,14 +12,14 @@ skipsdist = true max-line-length = 100 inline-quotes = ' ignore = - E501, \ + E501, W503, exclude = - .tox, \ - .vagrant, \ - __pycache__, \ - *.pyc, \ - templates, \ + .tox, + .vagrant, + __pycache__, + *.pyc, + templates, .eggs statistics = True @@ -53,7 +53,7 @@ commands = mypy --config-file ../mypy.ini {posargs:cephadm.py cephadmlib} [testenv:flake8] allowlist_externals = bash deps = - flake8 == 5.0.4 + flake8 flake8-quotes commands = flake8 --config=tox.ini {posargs:cephadm.py cephadmlib}