Skip to content
Snippets Groups Projects
Commit 0ccbb88f authored by dboe's avatar dboe
Browse files

Update template

parent c89e6d0e
No related branches found
No related tags found
No related merge requests found
# requirements.txt is generated dynamically in this project (e.g. make requirements)
requirements.txt
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
......
......@@ -119,7 +119,6 @@ skip_missing_interpreters = true
envlist =
py{35,36,37,38,39,310}
recreate = true
usedevelop = true
[gh-actions]
python =
......@@ -137,11 +136,10 @@ deps =
{[options.extras_require]test}
extras = test
commands =
pytest {envsitepackagesdir}/tfields \ # prevent ImportPathMismatchError https://tox.wiki/en/latest/example/pytest.html
--basetemp="{envtmpdir}" {posargs}
--cov={[metadata]name} \
--ignore=docs \
--junitxml=report/junit.xml
# The {envsitepackagesdir} parts prevent ImportPathMismatchError https://tox.wiki/en/latest/example/pytest.html
# That means also that you have to specify relative paths (e.g. --ignore) like so --ignore={envsitepackagesdir}/{[metadata]name}/plotting
# The below line is long and not broken and continued because of this error: https://github.com/tox-dev/tox/issues/945
pytest {envsitepackagesdir}/{[metadata]name} --basetemp="{envtmpdir}" {posargs} --cov={envsitepackagesdir}/{[metadata]name} --junitxml=report/junit.xml --ignore={envsitepackagesdir}/{[metadata]name}/plotting
[testenv:flake8]
commands = flake8 {[metadata]name}/ tests/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment