blob: b4541d7c226bcdfd75ca22ff76dce0ef96e50674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
[tox]
envlist =
py3,
mypy,
test,
fix
skipsdist = true
requires = cython
[flake8]
max-line-length = 100
exclude =
.tox,
.vagrant,
__pycache__,
*.pyc,
templates,
.eggs
[autopep8]
addopts =
--max-line-length {[flake8]max-line-length}
--exclude "{[flake8]exclude}"
--in-place
--recursive
--ignore-local-config
[testenv]
setenv =
UNITTEST = true
PYTHONPATH = ../../../build/lib/cython_modules/lib.3/
LD_LIBRARY_PATH = ../../../build/lib
deps =
cython
-rrequirements.txt
commands =
pytest --doctest-modules {posargs: \
mgr_util.py \
tests/ \
cephadm/ \
orchestrator/ \
insights/ \
pg_autoscaler/ \
progress/}
[testenv:mypy]
basepython = python3
deps =
cython
-rrequirements.txt
mypy==0.782
commands =
mypy --config-file=../../mypy.ini \
cephadm/module.py \
mgr_module.py \
dashboard/module.py \
prometheus/module.py \
mgr_util.py \
orchestrator/__init__.py \
progress/module.py \
rook/module.py \
test_orchestrator/module.py \
volumes/__init__.py
[testenv:test]
setenv = {[testenv]setenv}
deps = {[testenv]deps}
commands = {[testenv]commands}
[testenv:fix]
basepython = python3
deps = -rrequirements-fix.txt
commands =
python --version
autopep8 {[autopep8]addopts} {posargs: \
cephadm/}
|