-
Notifications
You must be signed in to change notification settings - Fork 28
/
tox.ini
58 lines (48 loc) · 1.31 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
[tox]
envlist = py3
mypy
flake8
docs
[testenv]
whitelist_externals = rm
make
commands =
rm -rf ./test_run_tmp
lit -sv ./tests/
[testenv:mypy]
basepython = python3
skip_install = true
deps =
mypy >= 0.910
sqlalchemy-stubs
types-setuptools
types-PyYAML
types-certifi
commands =
# Nowhere close to passing yet, but nice to have. The option
# --no-incremental is currently needed to suppress warnings about
# UpdatedBase when running tests several times. Future versions of
# mypy should be checked to see if it can be removed and not get
# warnings after running tox several times.
- mypy --no-incremental --junit-xml=junit-{envname}.xml --ignore-missing-imports lnt
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
# Lets keep the clean files clean.
flake8 --statistics --exclude=./lnt/external/ ./lnt/ ./tests/ ./setup.py ./deployment/
[testenv:docs]
skip_install = true
deps =
sphinx<2.0.0
sphinx_bootstrap_theme
commands =
make -C {toxinidir}/docs/ html
[testenv:runserver]
# Don't use this for production. Just a handy target
# for local testing.
whitelist_externals = sh
commands =
sh -c "if [[ ! -e ./server_sandbox/ ]]; then lnt create ./server_sandbox/; fi"
lnt runserver ./server_sandbox/