Skip to content

Commit

Permalink
Remove deprecated whitelist_externals configuration option
Browse files Browse the repository at this point in the history
`whitelist_externals` was replaced by `allowlist_externals` and has been
deprecatd since then.

Also see https://tox.wiki/en/3.18.1/changelog.html#v3-18-0-2020-07-23
  • Loading branch information
jugmac00 committed Dec 6, 2022
1 parent 02e16b4 commit 8ea6f0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog/2599.removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove deprecated configuration option ``whitelist_externals`` which was replaced by ``allowlist_externals`` - by :user:`jugmac00`.
2 changes: 1 addition & 1 deletion docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Base options
Always recreate virtual environment if this option is true, otherwise leave it up to tox.

.. conf::
:keys: allowlist_externals, whitelist_externals
:keys: allowlist_externals
:default: <empty list>

Each line specifies a command name (in glob-style pattern format) which can be used in the commands section even if
Expand Down
2 changes: 1 addition & 1 deletion src/tox/tox_env/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def pass_env_post_process(values: list[str]) -> list[str]:
desc="always recreate virtual environment if this option is true, otherwise leave it up to tox",
)
self.conf.add_config(
keys=["allowlist_externals", "whitelist_externals"],
"allowlist_externals",
of_type=List[str],
default=[],
desc="external command glob to allow calling",
Expand Down

0 comments on commit 8ea6f0d

Please sign in to comment.