Skip to content
Snippets Groups Projects
Commit 33902e3b authored by dboe's avatar dboe
Browse files

Merge branch 'cookiecutter-template'

parents 0c8523a5 0ccbb88f
No related merge requests found
Pipeline #117411 passed
# requirements.txt is generated dynamically in this project (e.g. make requirements)
requirements.txt
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
......
......@@ -135,7 +135,6 @@ skip_missing_interpreters = true
envlist =
py{35,36,37,38,39,310}
recreate = true
usedevelop = true
[gh-actions]
python =
......@@ -157,11 +156,10 @@ commands_pre =
rm -rf **/__pycache__
rm -rf **/*.pyc
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