Skip to content

Commit

Permalink
update tox to work with python
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Jan 29, 2021
1 parent e646831 commit 4f84004
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,40 @@
envlist=
python,
flake8,
docs,
# docs,
skipsdist=True

[testenv:python]
deps=
-r{toxinidir}/requirements.txt
# deps=
# -r{toxinidir}/requirements.txt
commands=
py.test . -v --cov coveralls --cov-report term-missing
poetry install -v
poetry run pytest . -v --cov coveralls --cov-report term-missing
passenv=
COVERALLS_REPO_TOKEN
MODELICAPATH
whitelist_externals=
cp
poetry

[testenv:precommit]
basepython=python
deps=
pre-commit
flake8
requests
commands=pre-commit run --all-files
# deps=
# pre-commit
# flake8
# requests
commands=
poetry install -v
poetry run pre-commit run -a
whitelist_externals=
modelicafmt
poetry

[testenv:docs]
deps=
-r{toxinidir}/requirements.txt
commands=
python setup.py build_sphinx
whitelist_externals=
make
cp
# [testenv:docs]
# deps=
# -r{toxinidir}/requirements.txt
# commands=
# python setup.py build_sphinx
# whitelist_externals=
# make
# cp

0 comments on commit 4f84004

Please sign in to comment.