@@ -37,6 +37,8 @@ passenv =
37
37
setenv =
38
38
SAGE ={toxinidir}/../sage
39
39
envdir ={toxworkdir}/sagedirect
40
+ allowlist_externals =
41
+ {env:SAGE}
40
42
41
43
[testenv:doctest]
42
44
description =
@@ -45,6 +47,7 @@ description =
45
47
passenv = {[sagedirect]passenv}
46
48
setenv = {[sagedirect]setenv}
47
49
envdir = {[sagedirect]envdir}
50
+ allowlist_externals = {[sagedirect]allowlist_externals}
48
51
commands =
49
52
{env:SAGE} -t -p 0 {posargs:--all}
50
53
@@ -56,6 +59,7 @@ description =
56
59
passenv = {[sagedirect]passenv}
57
60
setenv = {[sagedirect]setenv}
58
61
envdir = {[sagedirect]envdir}
62
+ allowlist_externals = {[sagedirect]allowlist_externals}
59
63
commands =
60
64
{env:SAGE} --coverage {posargs:--all}
61
65
@@ -67,6 +71,7 @@ description =
67
71
passenv = {[sagedirect]passenv}
68
72
setenv = {[sagedirect]setenv}
69
73
envdir = {[sagedirect]envdir}
74
+ allowlist_externals = {[sagedirect]allowlist_externals}
70
75
commands =
71
76
{env:SAGE} --startuptime {posargs}
72
77
@@ -75,17 +80,19 @@ description =
75
80
run the static typing checker pyright
76
81
deps = pyright
77
82
setenv =
83
+ {[sagedirect]setenv}
78
84
HOME ={envdir}
79
85
# Fix version, see .github/workflows/build.yml
80
86
PYRIGHT_PYTHON_FORCE_VERSION =1.1.232
87
+ allowlist_externals = {[sagedirect]allowlist_externals}
81
88
# # We run pyright from within the sage-env so that SAGE_LOCAL is available.
82
89
# # pyright is already configured via SAGE_ROOT/pyrightconfig.json to use our venv.
83
90
# #
84
91
# # Running pyright on the whole Sage source tree takes very long
85
92
# # and may run out of memory. When no files/directories are given, just run it
86
93
# # on the packages that already have typing annotations.
87
94
commands =
88
- {toxinidir}/../sage -sh -c ' pyright {posargs:{toxinidir}/sage/combinat {toxinidir}/sage/manifolds}'
95
+ {env:SAGE} -sh -c ' pyright {posargs:{toxinidir}/sage/combinat {toxinidir}/sage/manifolds}'
89
96
90
97
[testenv:pycodestyle]
91
98
description =
@@ -168,7 +175,7 @@ description =
168
175
# https://pypi.org/project/codespell/
169
176
deps = codespell
170
177
commands = codespell \
171
- --skip="*#*,*.a,*.bak,*.bz2,*.dia,*.gz,*.ico,*.inv,*.JPEG,*.jpeg" \
178
+ --skip="*\ # *,*.a,*.bak,*.bz2,*.dia,*.gz,*.ico,*.inv,*.JPEG,*.jpeg" \
172
179
--skip="*.JPG,*.jpg,*.log,*.o,*.orig,*.PDF,*.pdf,*.PNG,*.png,*.pyc" \
173
180
--skip="*.so,*.sobj,*.sws,*.tar,*.tgz,*.xz,*.zip,*~*,.DS_Store" \
174
181
--skip="doc/ca,doc/de,doc/es,doc/fr,doc/hu,doc/it,doc/ja,doc/pt,doc/ru,doc/tr" \
0 commit comments