tox mypy: Call mypywrap.sh directly

Tox issues a warning because bash is not
in whitelist_externals and indicates that this
will fail in tox 4+.

Just call mypywrap.sh directly to prevent this.

Change-Id: I3c1747b255338d189806b331ae6a3c1b37e6d744
This commit is contained in:
Eric Harney 2020-12-03 16:24:11 -05:00
parent 075ab6c85f
commit d9c90cf488
2 changed files with 2 additions and 2 deletions

2
tools/mypywrap.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# A wrapper around mypy that allows us to specify what files to run 'mypy' type
# checks on. Intended to be invoked via tox:

View File

@ -173,7 +173,7 @@ description =
Run type checks.
envdir = {toxworkdir}/pep8
commands =
bash tools/mypywrap.sh {posargs}
{toxinidir}/tools/mypywrap.sh {posargs}
[flake8]
# Following checks are ignored on purpose.