From: Adam King Date: Mon, 13 Feb 2023 03:18:25 +0000 (-0500) Subject: cephadm: fix autopep8 arg parsing on newer tox versions X-Git-Tag: v18.1.0~368^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50084%2Fhead;p=ceph.git cephadm: fix autopep8 arg parsing on newer tox versions This was failing for me on new tox versions with fix: commands[1]> autopep8 --max-line-length 100 incorrect number of argumentsfix: exit 99 (0.06 seconds) /home/adking/ceph/src/cephadm> autopep8 --max-line-length 100 pid=309039 fix: FAIL ✖ in 0.08 seconds As it was considering our list of args for autopep8 to each be one separate command. Fixed by just adding slashes to the ends of the lines (as has already been done in the tox.ini in src/pybind/mgr for some of the tests there) Signed-off-by: Adam King --- diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 74b8ae909e3f..2cbfca70f0ed 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -10,24 +10,24 @@ 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 [autopep8] addopts = - --max-line-length {[flake8]max-line-length} - --ignore "{[flake8]ignore}" - --exclude "{[flake8]exclude}" - --in-place - --recursive + --max-line-length {[flake8]max-line-length} \ + --ignore "{[flake8]ignore}" \ + --exclude "{[flake8]exclude}" \ + --in-place \ + --recursive \ --ignore-local-config [testenv]