Skip to content

Commit

Permalink
Switch to allowlist_externals for modern Tox (python-poetry#4574)
Browse files Browse the repository at this point in the history
`whitelist_externals` is now deprecated in Tox >= 3.18 and has been renamed to `allowlist_externals`

https://tox.readthedocs.io/en/latest/config.html#conf-allowlist_externals
  • Loading branch information
wwuck authored and 1nF0rmed committed Nov 15, 2021
1 parent fe032fe commit d3e7fc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ isolated_build = true
envlist = py27, py36

[testenv]
whitelist_externals = poetry
allowlist_externals = poetry
commands =
poetry install -v
poetry run pytest tests/
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pytest = "^6.2"
pytest-cov = "^2.8"
pytest-mock = "^3.5"
pre-commit = { version = "^2.6", python = "^3.6.1" }
tox = "^3.0"
tox = "^3.18"
pytest-sugar = "^0.9"
httpretty = "^1.0"
zipp = { version = "^3.4", python = "<3.8"}
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
minversion = 3.3.0
minversion = 3.18.0
isolated_build = True
envlist = py36, py37, py38, py39

[testenv]
whitelist_externals = poetry
allowlist_externals = poetry
commands =
poetry install -vv --no-root
poetry run pytest {posargs} tests/

0 comments on commit d3e7fc2

Please sign in to comment.