]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/tox.ini
3426ae2873579f569f03338457b6d75ffc4b4684
13 skip_missing_interpreters = true
17 norecursedirs = dashboard rook/rook_client rook/rook-client-python
24 # Allow similarity/code duplication detection
26 addopts = -rn --rcfile=.pylintrc --jobs={[pylint]jobs}
44 --max
-line
-length
{[flake8]max
-line
-length
}
45 --exclude
"{[flake8]exclude}"
53 PYTHONPATH = $PYTHONPATH:..
57 -rrook
/requirements.txt
59 pytest
--doctest
-modules
{posargs
:}
64 PYTHONPATH = $PYTHONPATH:..
67 -rrequirements
-required.txt
69 pytest
{posargs
:cephadm
/tests
/test_ssh.py
}
74 MYPYPATH = {toxinidir}/..
78 mypy_args = --config-file=../../mypy.ini
85 -m diskprediction_local
113 -c
{toxinidir
}/..
/..
/mypy
-constrains.txt
117 types
-python
-dateutil
122 mypy
{[testenv
:mypy]mypy_args
}
123 mypy
--python
-version
3.7 {[testenv
:mypy]mypy_args
}
127 setenv = {[testenv]setenv}
128 deps = {[testenv]deps}
129 commands = {[testenv]commands}
152 autopep8
{[autopep8]addopts
} \
153 {posargs
:{[testenv
:fix]modules
}}
162 pylint
{[pylint]addopts
} {posargs
:{[testenv
:pylint]modules
}}
168 allowlist_externals = bash
185 flake8 --config=tox.ini {posargs} \
186 {posargs
:{[testenv
:flake8]modules
}}
187 bash -c 'test $(git ls-files cephadm | grep ".py$" | grep -v tests | xargs grep "docker.io" | wc -l) == 13'
194 jinja
-ninja cephadm
/templates