summaryrefslogtreecommitdiffstats
path: root/src/python-common/tox.ini
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/python-common/tox.ini
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/python-common/tox.ini')
-rw-r--r--src/python-common/tox.ini35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/python-common/tox.ini b/src/python-common/tox.ini
new file mode 100644
index 000000000..2737a87e8
--- /dev/null
+++ b/src/python-common/tox.ini
@@ -0,0 +1,35 @@
+[tox]
+envlist = py3, mypy, lint
+skip_missing_interpreters = true
+
+[testenv:py3]
+deps=
+ -rrequirements.txt
+ -c{toxinidir}/../mypy-constrains.txt
+commands=
+ pytest --doctest-modules ceph/deployment/service_spec.py ceph/utils.py
+ pytest {posargs}
+ mypy --config-file=../mypy.ini -p ceph
+
+[testenv:mypy]
+deps=
+ -rrequirements.txt
+ -c{toxinidir}/../mypy-constrains.txt
+commands=
+ mypy --config-file=../mypy.ini -p ceph
+
+[tool:pytest]
+norecursedirs = .* _* virtualenv
+
+[flake8]
+max-line-length = 100
+exclude =
+ __pycache__
+
+[testenv:lint]
+deps =
+ -rrequirements-lint.txt
+commands =
+ flake8 {posargs:ceph}
+ rstcheck --report info --debug README.rst
+