From 4f84004965079f2be5e6bb018434910155211b98 Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Fri, 29 Jan 2021 12:01:04 -0700 Subject: [PATCH] update tox to work with python --- tox.ini | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/tox.ini b/tox.ini index 009e79f9a..5e16ae4da 100644 --- a/tox.ini +++ b/tox.ini @@ -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