do not use global install of poetry in tox[mypy]

This commit is contained in:
Alessio Bogon 2024-10-29 19:09:38 +01:00
parent e7ed3281d9
commit f8c2a01e4c
No known key found for this signature in database
1 changed files with 6 additions and 3 deletions

View File

@ -25,8 +25,11 @@ deps =
commands = {env:_PYTEST_CMD:pytest} {env:_PYTEST_MORE_ARGS:} {posargs:-vvl}
[testenv:mypy]
skip_install = true
allowlist_externals = poetry
deps = poetry
allowlist_externals = sh
commands_pre =
poetry install --with=dev
sh -c "\
poetry export --only=dev --format requirements.txt > requirements.txt && \
pip install -r requirements.txt && \
:"
commands = mypy