-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
50 lines (44 loc) · 968 Bytes
/
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
[tox]
envlist = test,doctest,lint,flake8,py37,py38,py39,py310
skip_missing_interpreters = true
[gh-actions]
python =
3.7: py37,test
3.8: py38,test
3.9: py39,doctest,test,lint,flake8
3.10: py38,test
[testenv]
setenv =
TOXINIDIR = {toxinidir}
passenv =
HOME
SETUPTOOLS_*
commands =
flake8: {[testenv:flake8]commands}
lint: {[testenv:lint]commands}
doctest: {[testenv:doctest]commands}
test: {[testenv:test]commands}
[testenv:test]
deps =
-rtest_requirements.txt
-rrequirements.txt
commands =
pytest --cov "{envsitepackagesdir}/mm_pal" {posargs}
[testenv:flake8]
deps = flake8
commands =
flake8 mm_pal mock_pal
[testenv:doctest]
deps =
-rdocs/requirements.txt
-rrequirements.txt
commands =
sphinx-build -M html docs/source docs/build
[testenv:lint]
deps =
pylint
pydocstyle
-rrequirements.txt
commands =
pylint mm_pal mock_pal
pydocstyle mm_pal mock_pal