У меня есть файл require.txt, который включает в себя tox и многие другие пакеты.
Выполнить:
Код: Выделить всё
python3 -m venv global_envКод: Выделить всё
source global_env/bin/activateКод: Выделить всё
pip install -r requirementsКод: Выделить всё
[tox]
envlist = py3.10.12, linter, unit-tests, docs
skipsdist = true
[testenv]
allowlist_externals = pytest, sphinx-build
deps =
-rrequirements.txt
[testenv:linter]
description = Run Black linter
deps =
black
commands =
black mtqe/ --check
[testenv:unit-tests]
description = Run unit tests
deps =
{[testenv]deps}
commands =
pytest ./tests/ --disable-warnings
Подробнее здесь: https://stackoverflow.com/questions/790 ... vironments