From 377b7606c1b04987925936d6bd1caab6a4da7ca5 Mon Sep 17 00:00:00 2001 From: Adam King Date: Sun, 12 Feb 2023 22:18:25 -0500 Subject: [PATCH] cephadm: fix autopep8 arg parsing on newer tox versions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/cephadm/tox.ini | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 74b8ae909e3..2cbfca70f0e 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] -- 2.39.5