diff options
Diffstat (limited to 'src/cephadm/tox.ini')
-rw-r--r-- | src/cephadm/tox.ini | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 20608c1681c..d643b1ba74f 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -12,18 +12,22 @@ 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 [testenv] +setenv = + PYTHONPATH = $PYTHONPATH:..:{toxinidir}/../python-common +passenv = + PYTHONPATH skip_install=true deps = -rzipapp-reqs.txt @@ -35,6 +39,10 @@ deps = commands=pytest {posargs} [testenv:mypy] +setenv = + MYPYPATH = {toxinidir}/..:{toxinidir}/../python-common +passenv = + MYPYPATH deps = mypy types-PyYAML @@ -45,12 +53,12 @@ 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} bash -c 'test $(git ls-files 'cephadm.py' 'cephadmlib/*.py' | sort -u | xargs grep "docker.io" | wc -l) == 1' - bash -c 'test $(git ls-files 'cephadm.py' 'cephadmlib/*.py' | sort -u | xargs grep "quay.io" | wc -l) == 25' + bash -c 'test $(git ls-files 'cephadm.py' 'cephadmlib/*.py' | sort -u | xargs grep "quay.io" | wc -l) == 7' # Downstream distributions may choose to alter this "docker.io" number, # to make sure no new references to docker.io are creeping in unnoticed. |