-
Notifications
You must be signed in to change notification settings - Fork 53
/
tox.ini
42 lines (37 loc) · 889 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
[tox]
minversion = 3.6
envlist = py39, lint, coverage, black
skipsdist = True
[testenv]
basepython = python3.9
usedevelop = true
passenv = *
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
deps = -r requirements.txt
-r requirements-dev.txt
commands =
pip check
python -m unittest -v
[testenv:lint]
envdir = .tox/lint
sitepackages = False
commands =
pylint -rn ecosystem tests
[testenv:coverage]
basepython = python3
commands =
coverage3 run -m unittest -v
coverage3 report --fail-under=80
[testenv:black]
envdir = .tox/lint
commands = black {posargs} ecosystem tests --check
[testenv:website]
allowlist_externals = bash
basepython = python3
commands =
bash -ec "python manager.py build --output website/index.html"
bash -ec "python manager.py members compile_json 'website/ecosystem.json'"