still trying to get doctest to pass [no luck yet...]
@@ -31,14 +31,14 @@ changedir = {envtmpdir}
skip_install = true
commands_pre =
- ; !doctest-win: powershell -Command 'Remove-Item -Recurse {toxinidir}\dist -ErrorAction Ignore'
- !doctest-nix: bash -c "rm -r {toxinidir}/dist || true"
+ ; !doctest-!pylint-win: powershell -Command 'Remove-Item -Recurse {toxinidir}\dist -ErrorAction Ignore'
+ !doctest-!pylint-nix: bash -c "rm -r {toxinidir}/dist || true"
- !doctest-win: powershell -Command 'cd {toxinidir} && poetry build --format wheel'
- !doctest-nix: bash -c "cd {toxinidir} && poetry build --format wheel"
+ !doctest-!pylint-win: powershell -Command 'cd {toxinidir} && poetry build --format wheel'
+ !doctest-!pylint-nix: bash -c "cd {toxinidir} && poetry build --format wheel"
commands =
- !doctest: python -m pip uninstall -y pymedphys
+ !doctest-!pylint: python -m pip uninstall -y pymedphys
clean-nix: bash -c "python -m pip install {toxinidir}/dist/*.whl"
clean-win: powershell -Command 'python -m pip install (Get-Item {toxinidir}\dist\*.whl)'
@@ -48,19 +48,19 @@ commands =
docs-nix: bash -c "python -m pip install `ls {toxinidir}/dist/*.whl`[docs,library]"
runslow-nix,pytest-nix: bash -c "python -m pip install `ls {toxinidir}/dist/*.whl`[pytest,library,labs]"
- pylint-nix: bash -c "python -m pip install `ls {toxinidir}/dist/*.whl`[pytest,pylint,library,labs]"
docs-win: powershell -Command 'python -m pip install "$(Get-Item {toxinidir}\dist\*.whl)[docs,library]"'
runslow-win,pytest-win: powershell -Command 'python -m pip install "$(Get-Item {toxinidir}\dist\*.whl)[pytest,library,labs]"'
- pylint-win: powershell -Command 'python -m pip install "$(Get-Item {toxinidir}\dist\*.whl)[pytest,pylint,library,labs]"'
doctest: poetry install --no-dev -E pytest -E library -E labs
+ pylint: poetry install --no-dev -E pytest -E library -E labs -E pylint
doctest: poetry run pytest -v --basetemp={envtmpdir} --junitxml=junit/.test.{envname}.xml [] --doctest-modules {toxinidir}
+ pylint: poetry run pytest --pylint --pylint-jobs=1 {toxinidir}
+
runslow: pytest -v --run-slow --basetemp={envtmpdir} --junitxml=junit/.test.{envname}.xml [] {toxinidir}
pytest: pytest -v --basetemp={envtmpdir} --junitxml=junit/.test.{envname}.xml [] {toxinidir}
docs: sphinx-build -W docs {toxinidir}/docs/_build/html
- pylint: pytest --pylint --pylint-jobs=1 {toxinidir}
; production: poetry install -vvv --no-dev
; production: pip install pymedphys[pytest,pylint,library]==`poetry run python -c "import pymedphys; print(pymedphys.__version__)"`
