Adding pip-pre conditional into the main testenv
@@ -51,17 +51,9 @@ commands =
cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* --cov astroquery --cov-config={toxinidir}/setup.cfg {posargs}
cov: coverage xml -o {toxinidir}/coverage.xml
-[testenv:predeps]
-description = run tests with pre-releases
-pip_pre = true
-
-deps = {[testenv]deps}
-passenv = {[testenv]passenv}
-pypi_filter = {[testenv]pypi_filter}
-changedir = {[testenv]changedir}
-extras = {[testenv]extras}
-commands = {[testenv]commands}
-
+pip_pre =
+ predeps: true
+ !predeps: false
[testenv:codestyle]
changedir = {toxinidir}
