Skip to content

Commit f8c2a01

Browse files
committed
do not use global install of poetry in tox[mypy]
1 parent e7ed328 commit f8c2a01

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ deps =
2525
commands = {env:_PYTEST_CMD:pytest} {env:_PYTEST_MORE_ARGS:} {posargs:-vvl}
2626

2727
[testenv:mypy]
28-
skip_install = true
29-
allowlist_externals = poetry
28+
deps = poetry
29+
allowlist_externals = sh
3030
commands_pre =
31-
poetry install --with=dev
31+
sh -c "\
32+
poetry export --only=dev --format requirements.txt > requirements.txt && \
33+
pip install -r requirements.txt && \
34+
:"
3235
commands = mypy

0 commit comments

Comments
 (0)