-
Notifications
You must be signed in to change notification settings - Fork 181
/
Copy pathtox.ini
55 lines (51 loc) · 1.66 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
[tox]
skipsdist = true
envlist =
getting_started,
spouse,
visual_relation,
spam,
crowdsourcing,
multitask,
drybell,
recsys,
style,
[testenv]
description = test/sync for {envname}
deps =
-rrequirements.txt
getting_started: -rgetting_started/requirements.txt
spouse: -rspouse/requirements.txt
spam: -rspam/requirements.txt
multitask: -rmultitask/requirements.txt
visual_relation: -rvisual_relation/requirements.txt
crowdsourcing: -rcrowdsourcing/requirements.txt
recsys: -rrecsys/requirements.txt
drybell: -rdrybell/requirements.txt
passenv =
JAVA_HOME
IS_TEST
TRAVIS
commands_pre =
drybell: python -m spacy download en_core_web_sm
# Available posargs: test, sync, html
commands =
getting_started: python {toxinidir}/scripts/build.py {posargs:test} getting_started
spouse: python {toxinidir}/scripts/build.py {posargs:test} spouse
spam: python {toxinidir}/scripts/build.py {posargs:test} spam
multitask: python {toxinidir}/scripts/build.py {posargs:test} multitask
visual_relation: python {toxinidir}/scripts/build.py {posargs:test} visual_relation
crowdsourcing: python {toxinidir}/scripts/build.py {posargs:test} crowdsourcing
recsys: python {toxinidir}/scripts/build.py {posargs:test} recsys
drybell: python {toxinidir}/scripts/build.py {posargs:test} drybell
[testenv:style]
description = check the code style
commands =
black --check {toxinidir}
flake8 {toxinidir}
[testenv:fix]
description = run code stylers
commands = black {toxinidir}
[testenv:markdown]
description = generate markdown webpages
commands = python {toxinidir}/scripts/build.py markdown {posargs}