我有以下 tox.ini:
[tox]
envlist = py37-{lint, test}
[testenv:py37-{lint, test}]
envdir = {toxworkdir}/lint_and_test_env
deps =
pylint
pytest
pytest-xdist
commands =
lint: pylint src {posargs}
test: pytest tests {posargs}
Run Code Online (Sandbox Code Playgroud)
我想并行运行这两个环境并指定--jobs=4
pylint 和-n auto
pytest。执行tox -p -- --jobs=4 -n auto
失败,因为 pylint 无法识别 -n 参数,反之亦然。
有办法实现我的目标吗?