blob: 71855689075532fcf6a2f510801cda8dfb078e3a [file] [log] [blame]
[base]
# Files we'd like to keep lint clean. Lets hope we can expand this list.
whitelist_files = ./setup.py
./deployment/
./lnt/formats/
./lnt/util/
./lnt/tests/
./lnt/testing/
./tests/server/ui/
[tox]
envlist = py27
py3
mypy
flake8
[testenv]
whitelist_externals = rm
commands =
rm -rf ./test_run_tmp
lit -sv ./tests/
[testenv:mypy]
basepython = python3
skip_install = true
deps =
mypy
commands =
# No where close to passing yet, but nice to have.
- mypy --junit-xml=junit-{envname}.xml --py2 --ignore-missing-imports lnt
- mypy --junit-xml=junit-{envname}.xml --ignore-missing-imports lnt
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
# Still lots of problems.
- flake8 --statistics --exclude=./lnt/external/ ./lnt/ ./tests/ ./setup.py ./deployment/
# But lets keep the clean files clean.
flake8 {[base]whitelist_files}