Use tox
This commit is contained in:
parent
fd99454e31
commit
6cc83d630a
4 changed files with 40 additions and 7 deletions
30
tox.ini
Normal file
30
tox.ini
Normal file
|
@ -0,0 +1,30 @@
|
|||
[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*
|
||||
changedir = {toxworkdir}/{envname}
|
||||
commands =
|
||||
# pip install -e .[testing]
|
||||
# TODO ??
|
||||
# python -m pytest {posargs}
|
||||
python3 -c 'import my; print(my.__path__)'
|
||||
# TODO run demo.py? just make sure with_my is a bit cleverer?
|
||||
# TODO e.g. under CI, rely on installing
|
||||
|
||||
|
||||
# [testenv:mypy]
|
||||
# skip_install = true
|
||||
# commands =
|
||||
# pip install -e .[testing]
|
||||
# python -m mypy --check-untyped src/cachew
|
||||
|
||||
|
||||
# [testenv:pylint]
|
||||
# skip_install = true
|
||||
# commands =
|
||||
# pip install -e .[testing]
|
||||
# python -m pylint -E src/cachew
|
Loading…
Add table
Add a link
Reference in a new issue