This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
82 lines (75 loc) · 1.37 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
[global]
src =
{toxinidir}/dataapi
[tox]
envlist =
black
pylint
mypy
skipsdist = true
[testenv]
src =
{toxinidir}/tests
require_locked_deps = true
[testenv:black]
require_locked_deps = true
locked_deps =
black
allowlist_externals =
black
commands =
black \
--check \
--diff \
{posargs:{[global]src} {[testenv]src}}
[testenv:pylint]
require_locked_deps = true
install_project_deps = true
locked_deps =
pylint
pytest
lorem-text
allowlist_externals =
pylint
commands =
{envpython} -m pylint \
--rcfile={toxinidir}/.pylintrc \
{posargs:{[global]src} {[testenv]src}}
[testenv:mypy]
require_locked_deps = true
install_project_deps = true
locked_deps =
mypy
allowlist_externals =
mypy
commands =
mypy --ignore-missing-imports {posargs:{[global]src}}
[testenv:pytest]
passenv =
MONGODB_URL
MONGODB_PORT
require_locked_deps = true
install_project_deps = true
locked_deps =
pytest
lorem-text
allowlist_externals =
pytest
commands =
pytest {posargs}
[testenv:mutmut]
require_locked_deps = true
install_project_deps = true
locked_deps =
pytest
mutmut
allowlist_externals =
rm
mutmut
commands_pre =
rm -f {toxinidir}/.mutmut-cache
commands =
mutmut run \
--paths-to-mutate {[global]src} \
--tests-dir {[testenv]src} \
{posargs}