-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (48 loc) · 1.25 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
[flake8]
max-line-length = 120
[tox]
isolated_build = True
# investigate: higher versions of tox-conda break the build
requires = tox-conda==0.9.2
tox-run-before
envlist =
# py37
py38
[testenv]
conda_env = environment.yml
conda_install_args=
--override-channels
extras = test
description = test Ontolearn
run_before =
./big_gitext/download_big.sh KGs/Mutagenesis/mutagenesis.owl
commands =
pytest --continue-on-collection-errors --codeblocks {posargs}
[testenv:build]
extras = dev
description = build Ontolearn package
commands =
python -m build
[testenv:clean]
skip_install = True
description = delete the built package
commands =
python -c 'from shutil import rmtree; rmtree("build", True); rmtree("dist", True)'
[testenv:docs-clean]
skip_install = True
description = delete the built docs
commands =
python -c 'from shutil import rmtree; rmtree("docs/_build", True);'
[testenv:docs]
extras = docs
description = build Ontolearn docs
commands =
sphinx-build -M {posargs:html} docs/ docs/_build/
commands_post =
python -c 'print("documentation can be found in file://{toxinidir}/docs/_build/")'
[testenv:lint]
extras = lint
skip_install = True
description = lint the source code with flake8
commands =
flake8 . {posargs}