-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathtox.ini
82 lines (61 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[tox]
minversion=3.20.1
requires=
virtualenv>=20.0.35
envlist =
pyflakes,mypy,pytype
[testenv]
[testenv:test]
description = Test saskatoon
extras =
test
commands = {toxinidir}/saskatoon/tests/runtests.sh
[testenv:pyflakes]
description = Run pyflakes on the saskatoon code
deps = pyflakes
commands =
pyflakes ./saskatoon/
[testenv:mypy]
description = Run mypy (static type checker) on the saskatoon code
deps =
mypy>=0.8
typing-extensions
commands =
mypy --cache-dir="{toxworkdir}/mypy_cache" --ignore-missing-imports ./saskatoon
[testenv:pytype]
description = Run pytype (another static type checker) on the saskatoon code
deps =
pytype
.[test]
commands =
pytype --keep-going ./saskatoon
[testenv:apidocs]
deps =
pydoctor
commands =
# Run pydoctor build
pydoctor \
--project-name=Saskatoon-Dev \
--project-url=https://github.com/LesFruitsDefendus/saskatoon-ng \
--html-viewsource-base=https://github.com/LesFruitsDefendus/saskatoon-ng/tree/develop \
--make-html \
--html-output=./apidocs \
--project-base-dir="{toxinidir}" \
--docformat=restructuredtext \
--intersphinx=https://docs.python.org/3/objects.inv \
{toxinidir}/saskatoon/sitebase \
{toxinidir}/saskatoon/harvest \
{toxinidir}/saskatoon/member \
{toxinidir}/saskatoon/saskatoon \
{toxinidir}/saskatoon/tests
[testenv:checks]
extras =
test
allowlist_externals =
*/manage.py
commands =
{toxinidir}/saskatoon/manage.py check
{toxinidir}/saskatoon/manage.py validate_templates
[testenv:unittests]
commands =
pytest {toxinidir}/saskatoon/unittests