Skip to content

Commit

Permalink
tox: use deps = . instead of pip install
Browse files Browse the repository at this point in the history
If a user is using `tox-uv` (a plugin for tox that supports running the
various `pip` commands vi `uv`), then `pip install .` is seen as an
external command, which would require `allowlist_externals`. Instead,
install the local project by specifying it as a dep. Then, regular tox
and tox-uv both will install it as `pip install .` or `uv pip install
.`, respectively.
  • Loading branch information
Amar1729 committed Jul 28, 2024
1 parent 23b89f6 commit aad9ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ commands =


[testenv:check-self]
deps = .
commands =
pip install -e .
pydoclint --config=pyproject.toml .


Expand Down

0 comments on commit aad9ba8

Please sign in to comment.