]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/tox.ini
6270dbdca51e3b1cbcee059a5d68295d0b5e5141
10 skip_missing_interpreters = true
14 norecursedirs = dashboard rook/rook_client rook/rook-client-python
21 # Allow similarity/code duplication detection
23 addopts = -rn --rcfile=.pylintrc --jobs={[pylint]jobs}
41 --max
-line
-length
{[flake8]max
-line
-length
} \
42 --exclude
"{[flake8]exclude}" \
50 PYTHONPATH = $PYTHONPATH:..
54 -rrook
/requirements.txt
56 pytest
--doctest
-modules
{posargs
:}
61 PYTHONPATH = $PYTHONPATH:..
65 pytest
{posargs
:cephadm
/tests
/test_ssh.py
}
70 MYPYPATH = {toxinidir}/..
76 -c
{toxinidir
}/..
/..
/mypy
-constrains.txt
85 mypy --config-file=../../mypy.ini \
92 -m diskprediction_local \
115 -m test_orchestrator \
120 setenv = {[testenv]setenv}
121 deps = {[testenv]deps}
122 commands = {[testenv]commands}
135 diskprediction_local \
146 autopep8
{[autopep8]addopts
} \
147 {posargs
:{[testenv
:fix]modules
}}
156 pylint
{[pylint]addopts
} {posargs
:{[testenv
:pylint]modules
}}
162 allowlist_externals = bash
170 diskprediction_local \
181 flake8 --config=tox.ini {posargs} \
182 {posargs
:{[testenv
:flake8]modules
}}
183 bash -c 'test $(git ls-files cephadm | grep ".py$" | grep -v tests | xargs grep "docker.io" | wc -l) == 13'
190 jinja
-ninja cephadm
/templates