From 8d76731de20f7d03dfcf140d5be2ebfaa95f21a2 Mon Sep 17 00:00:00 2001 From: Kelle Cruz Date: Wed, 15 Nov 2023 11:37:58 -0700 Subject: [PATCH] Update tox.ini to handle spaces in paths (#1099) Tox doesn't handle spaces in paths well. Adding single quotes around the path variables in the tox.ini fixes this. --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 49defd490..ac4559cf2 100644 --- a/tox.ini +++ b/tox.ini @@ -70,9 +70,9 @@ commands = # Force numpy-dev after matplotlib downgrades it (https://github.com/matplotlib/matplotlib/issues/26847) devdeps: python -m pip install --pre --upgrade --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy pip freeze - !cov: pytest --pyargs specutils {toxinidir}/docs {posargs} - cov: pytest --pyargs specutils {toxinidir}/docs --cov specutils --cov-config={toxinidir}/setup.cfg {posargs} - cov: coverage xml -o {toxinidir}/coverage.xml + !cov: pytest --pyargs specutils '{toxinidir}/docs' {posargs} + cov: pytest --pyargs specutils '{toxinidir}/docs' --cov specutils --cov-config='{toxinidir}/setup.cfg' {posargs} + cov: coverage xml -o '{toxinidir}/coverage.xml' pip_pre = predeps: true