HPI/tox.ini
2020-04-11 22:25:54 +01:00

44 lines
1.3 KiB
INI

[tox]
minversion = 3.5
envlist = py36,py37 # ,pylint,mypy
skip_missing_interpreters = True
# TODO ugh. unclear how to reuse setup.cfg deps in tox
[testenv]
passenv = CI CI_* CIRCLE*
setenv = MY_CONFIG = mycfg_template
commands =
pip install -e .
# TODO ??
# python -m pytest {posargs}
python3 -c 'import my.init; import my.config; print(my.config.__path__)'
python3 -c 'import my.init; import my.config; import my.config.repos' # shouldn't fail at least
# TODO run demo.py? just make sure with_my is a bit cleverer?
# TODO e.g. under CI, rely on installing
[testenv:demo]
# TODO wtf????
changedir = {toxworkdir}/{envname}/../..
# TODO not sure?? also reuse installed my. instead on installing in demo.py?
skip_install = true
# TODO need to keep full mycfg.py as example? to dummy run CI
commands = ./demo.py
# [testenv:mypy]
# skip_install = true
# commands =
# pip install -e .[testing]
# python -m mypy --check-untyped src/cachew
[testenv:pylint]
# TODO wtf????
changedir = {toxworkdir}/{envname}/../..
skip_install = true
commands =
pip install -e .[testing]
# for now ignore import errors until I figure out how to import everything for CI checking..
# TODO FIXME ugh. fix later, after properly switched to my.config
# python -m pylint -E -d import-error my