A project uses tox
and poetry
to manage the Python environment during continuous integration (CI) testing (install Python packages before running tests). The project root directory has files /tox.ini
and /pyproject.toml
.
In the CI workflow, a shell script /runner.sh
calls tox
. The /tox.ini
instructs tox
to call poetry install
. The /pyproject.toml
has a few settings which poetry
passes to pip
.
I want to pass some particular arguments to pip
, e.g. --disable-pip-version-check
.
What is the best way to pass arguments to pip
?
Should I edit /tox.ini
or /pyproject.toml
? Is there a field in either file that will guarantee some particular arguments are passed to child invocations of pip
?
Should I set an environment variable within the controlling shell script /runner.sh
?