Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/tox.ini: More allowlist_externals for tox 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Dec 20, 2022
1 parent 95fe89a commit cc7196a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ passenv =
setenv =
SAGE={toxinidir}/../sage
envdir={toxworkdir}/sagedirect
allowlist_externals =
{env:SAGE}

[testenv:doctest]
description =
Expand All @@ -45,6 +47,7 @@ description =
passenv = {[sagedirect]passenv}
setenv = {[sagedirect]setenv}
envdir = {[sagedirect]envdir}
allowlist_externals = {[sagedirect]allowlist_externals}
commands =
{env:SAGE} -t -p 0 {posargs:--all}

Expand All @@ -56,6 +59,7 @@ description =
passenv = {[sagedirect]passenv}
setenv = {[sagedirect]setenv}
envdir = {[sagedirect]envdir}
allowlist_externals = {[sagedirect]allowlist_externals}
commands =
{env:SAGE} --coverage {posargs:--all}

Expand All @@ -67,6 +71,7 @@ description =
passenv = {[sagedirect]passenv}
setenv = {[sagedirect]setenv}
envdir = {[sagedirect]envdir}
allowlist_externals = {[sagedirect]allowlist_externals}
commands =
{env:SAGE} --startuptime {posargs}

Expand All @@ -75,17 +80,19 @@ description =
run the static typing checker pyright
deps = pyright
setenv =
{[sagedirect]setenv}
HOME={envdir}
# Fix version, see .github/workflows/build.yml
PYRIGHT_PYTHON_FORCE_VERSION=1.1.232
allowlist_externals = {[sagedirect]allowlist_externals}
## We run pyright from within the sage-env so that SAGE_LOCAL is available.
## pyright is already configured via SAGE_ROOT/pyrightconfig.json to use our venv.
##
## Running pyright on the whole Sage source tree takes very long
## and may run out of memory. When no files/directories are given, just run it
## on the packages that already have typing annotations.
commands =
{toxinidir}/../sage -sh -c 'pyright {posargs:{toxinidir}/sage/combinat {toxinidir}/sage/manifolds}'
{env:SAGE} -sh -c 'pyright {posargs:{toxinidir}/sage/combinat {toxinidir}/sage/manifolds}'

[testenv:pycodestyle]
description =
Expand Down

0 comments on commit cc7196a

Please sign in to comment.