Skip to content

Commit 6dce453

Browse files
nicolasmorinirjarry
authored andcommitted
Remove tox warning about missing allowlist_externals
* The warning is: WARNING: test command found but not installed in testenv cmd: /usr/bin/sh env: /home/nicolas/work/libyang-python/.tox/lint Maybe you forgot to specify a dependency? See also the allowlist_externals envconfig setting. DEPRECATION WARNING: this will be an error in tox 4 and above! * Depending on the operating system where tox is run, some common system tools are located in different places. In particular: - ubuntu-18.04: /bin/sh - ubuntu-20.04: /usr/bin/sh * The github CI workflow is running on ubuntu-latest, which it resolves to ubuntu-20.04 now, where "sh" is on /usr/bin/sh, making tox complain about not having it allow-listed
1 parent 7a0c440 commit 6dce453

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ skip_install = true
3636
install_command = python3 -m pip install {opts} {packages}
3737
whitelist_externals =
3838
/bin/sh
39+
/usr/bin/sh
3940
commands =
4041
sh -ec 'python3 -m isort $(git ls-files "*.py")'
4142
sh -ec 'python3 -m black -t py35 $(git ls-files "*.py")'
@@ -52,6 +53,7 @@ deps =
5253
pylint>=2.5
5354
whitelist_externals =
5455
/bin/sh
56+
/usr/bin/sh
5557
commands =
5658
sh -ec 'python3 -m black -t py35 --diff --check $(git ls-files "*.py")'
5759
sh -ec 'python3 -m flake8 $(git ls-files "*.py")'

0 commit comments

Comments
 (0)