*: s/whitelist_externals/allowlist_externals/

as allowlist_externals was introduced in
tox v4.0. see
5e33fda1a4 , but
this option was backported to 3.18 as an alias of whitelist_externals, so we don't need
to specify the minversion to 4.0 in this change.

as we started using tox 4.0 and up (v4.0.2 in specific). tox complains
and fails like:

alerts-lint: failed with promtool is not allowed, use allowlist_externals to allow it
  alerts-lint: FAIL code 1 (9.25 seconds)

see https://tox.wiki/en/latest/faq.html#tox-4-removed-tox-ini-keys
and https://tox.wiki/en/latest/config.html#allowlist_externals

it'd be nice to use a more inclusive language also. so, in this change,
s/whitelist_externals/allowlist_externals/ in all tox.ini in this
project.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
Kefu Chai 2022-12-08 14:53:33 +08:00
parent dad9f9409f
commit 34e2e33870
5 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@ envlist =
skipsdist = true
[testenv:jsonnet-bundler-{install,update}]
whitelist_externals =
allowlist_externals =
jb
description =
install: Install the jsonnet dependencies
@ -19,7 +19,7 @@ commands =
[testenv:jsonnet-{check,fix,lint}]
basepython = python3
whitelist_externals =
allowlist_externals =
find
jb
jsonnet
@ -56,7 +56,7 @@ deps =
-rrequirements-lint.txt
depends = grafonnet-check
setenv =
whitelist_externals =
allowlist_externals =
promtool
commands =
behave tests_dashboards/features
@ -66,7 +66,7 @@ deps =
-rrequirements-alerts.txt
pytest
depends = grafonnet-check
whitelist_externals =
allowlist_externals =
promtool
commands =
fix: jsonnet -J vendor -S alerts.jsonnet -o prometheus_alerts.yml

View File

@ -4,7 +4,7 @@ skipsdist = True
[testenv]
deps = mock
whitelist_externals =
allowlist_externals =
vagrant
bash
git

View File

@ -4,7 +4,7 @@ skipsdist = True
[testenv]
deps = mock
whitelist_externals =
allowlist_externals =
vagrant
bash
git

View File

@ -4,7 +4,7 @@ skipsdist = True
[testenv]
deps = mock
whitelist_externals =
allowlist_externals =
vagrant
bash
git

View File

@ -4,7 +4,7 @@ skip_missing_interpreters = true
[testenv]
passenv=*
whitelist_externals=
allowlist_externals=
bash
grep
mktemp