forked from ProjectDrawdown/solutions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
59 lines (48 loc) · 1.42 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
[tox]
envlist = py38
skipsdist = True
[testenv]
# one virtual env for all test - without this line tox will install .tox/all env to run the 'all' suit
envdir = {toxworkdir}/common
setenv = PYTHONPATH = {toxinidir}
deps =
-rrequirements.txt
commands =
python -m pytest -m "not slow" {posargs}
[testenv:all]
commands =
python -m pytest --cov=. --cov-report term-missing {posargs}
# runs on github workflow
[testenv:ci]
commands =
python -m pytest --cov=. --cov-report term --cov-report=xml
[testenv:health_update]
commands =
python tools/health/survey.py
python tools/health/landsurvey.py
python dashboard/__main__.py
[testenv:lint]
deps =
{[testenv]deps}
pylint
commands =
python -m pylint --rcfile=tox.ini data model solution tests tools ui dashboard
# ==== pylint section
[MASTER]
ignore-patterns=__init__.py
[MESSAGES CONTROL]
disable=all
enable==W0301,W0311,W0312,W0611,W0622,W0703,E1101,E1120,E0401,E0602,F0010
; too much noise with these mainly due to unpacking. YMMV
; W0612: Unused variable
; W0613: Unused argument
# /==== pylint section
[pytest]
addopts = --strict-markers --ignore limbo --ignore tools
filterwarnings =
ignore:.*wmf image format is not supported.*:UserWarning
ignore:.*extension is not supported and will be removed.*:UserWarning
markers =
slow: mark a test as taking a long time.
deep: mark a test as "whitebox" testing
oceans: only run tests in the oceans sector