-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
executable file
·146 lines (127 loc) · 3.33 KB
/
tox.ini
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[tox]
envlist = py36,py37,py38,mypy,docs
skip_missing_interpreters = True
ignore_basepython_conflict = True
[testenv]
description = default settings for unspecified tests
usedevelop = False
skip_install = False
passenv = *
basepython = python3.6
deps =
-r{toxinidir}/requirements/tests.txt
commands =
pytest tests/ -v --cov=app --basetemp={envtmpdir}
[testenv:coverage]
description = create report for coverage
commands =
pytest tests/ --cov=app --cov-report=term-missing --cov-report=xml --cov-report=html
[testenv:codecov]
description = create report for codecov
commands =
codecov
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps =
-r{toxinidir}/requirements/docs.txt
commands =
sphinx-build -d app/docs/build/docs_doctree app/docs/source docs/build/html --color -b html {posargs}
[testenv:pre-commit]
deps = pre-commit
commands =
pre-commit run --all-files
[testenv:packaging]
description = check packaging with twine
skip_install = True
recreate = True
deps =
-r{toxinidir}/requirements/packaging.txt
commands =
python setup.py sdist bdist_wheel
twine check dist/*
[testenv:dist_install]
description = install from dist
recreate = True
commands =
pip freeze
python -c "import fhe_collector; print(fhe_collector.__name__); print(pyDataverse.__version__)"
[testenv:pypitest]
description = install from test pypi
skip_install = True
recreate = True
commands =
pip install -i https://test.pypi.org/simple/ fhe_collector --extra-index-url https://pypi.org/simple fhe_collector
pip freeze
python -c "import fhe_collector; print(fhe_collector.__name__); print(pyDataverse.__version__)"
[testenv:pypi]
description = install from pypi
skip_install = True
recreate = True
commands =
pip install fhe_collector
pip freeze
python -c "import fhe_collector; print(fhe_collector.__name__); print(pyDataverse.__version__)"
[testenv:pylint]
description = pylint for linting
deps =
-r{toxinidir}/requirements/lint.txt
commands =
pylint app/
pylint tests/
[testenv:mypy]
deps =
-r{toxinidir}/requirements/lint.txt
commands =
mypy app/ main.py setup.py
[testenv:flake8]
description = flake8 for style guide and docstring testing
deps =
-r{toxinidir}/requirements/lint.txt
commands =
flake8 app
[testenv:flake8_docstrings]
description = flake8 for style guide and docstring testing
deps =
-r{toxinidir}/requirements/lint.txt
commands =
flake8 --docstring-convention numpy app/
[testenv:black]
description = black for auto-formatting
deps =
-r{toxinidir}/requirements/lint.txt
commands =
black app/
black tests/
[testenv:pydocstyle]
description = pydocstyle for auto-formatting
-r{toxinidir}/requirements/lint.txt
commands =
pydocstyle app/
pydocstyle tests/
[testenv:radon-mc]
description = Radon McCabe number
deps =
-r{toxinidir}/requirements/lint.txt
commands =
radon cc app/ -a
[testenv:radon-mi]
description = Radon Maintainability Index
deps =
-r{toxinidir}/requirements/lint.txt
commands =
radon mi app/
radon mi tests/
[testenv:radon-raw]
description = Radon raw metrics
deps =
-r{toxinidir}/requirements/lint.txt
commands =
radon raw app/
radon raw tests/
[testenv:radon-hal]
description = Radon Halstead metrics
deps =
-r{toxinidir}/requirements/lint.txt
commands =
radon hal app/
radon hal tests/