-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
59 lines (50 loc) · 1.51 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
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
skipsdist = True
envlist = tests,lint,build_docs_html,build_docsgame
# Unit tests
[testenv:tests]
basepython=py39
deps = -r requirements/tests.txt
commands =
py.test -s -vv --cov-report term-missing --cov=encyclopaedia tests
[testenv:tests-lcov]
basepython=py39
deps = -r requirements/tests.txt
commands =
py.test -s -vv --cov-report lcov --cov=encyclopaedia tests
[testenv:lint]
basepython=py39
skip_install = true
deps = -r requirements/lint.txt
changedir = .
commands =
isort --trailing-comma encyclopaedia tests
ruff check encyclopaedia tests
pyright encyclopaedia
# Build local copy of docs
[testenv:build_docs_html]
basepython=py39
skip_install = true
deps = -r requirements/docs.txt
changedir = docs/
commands =
sphinx-build -E -b html . ../docs_html
# Build docs game
[testenv:build_docsgame]
basepython=py39
allowlist_externals = bash, cp, tox, pip
skip_install = true
deps = -r requirements/docsgame.txt
changedir = .
commands =
bash -c ./scripts/batch_rst2html5.sh
# Encyclopaedia core files
cp -r encyclopaedia docsgame_dist/game/encyclopaedia
# Dependencies
pip install --target docsgame_dist/game/python-packages beautifulsoup4
pip install --target docsgame_dist/game/python-packages Pygments
pip install --target docsgame_dist/game/python-packages docutils
pip install --target docsgame_dist/game/python-packages ./renpy_pygments
# rpy files necessary for the game
cp -r docsgame_source/game/ docsgame_dist/