blob: 6a2c56e946a4dbe782a7c7db0813b5fd596d94c2 [file] [log] [blame]
[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
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