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:
parent
075ab6c85f
commit
d9c90cf488
2
tools/mypywrap.sh
Normal file → Executable file
2
tools/mypywrap.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# A wrapper around mypy that allows us to specify what files to run 'mypy' type
|
# A wrapper around mypy that allows us to specify what files to run 'mypy' type
|
||||||
# checks on. Intended to be invoked via tox:
|
# checks on. Intended to be invoked via tox:
|
||||||
|
2
tox.ini
2
tox.ini
@ -173,7 +173,7 @@ description =
|
|||||||
Run type checks.
|
Run type checks.
|
||||||
envdir = {toxworkdir}/pep8
|
envdir = {toxworkdir}/pep8
|
||||||
commands =
|
commands =
|
||||||
bash tools/mypywrap.sh {posargs}
|
{toxinidir}/tools/mypywrap.sh {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# Following checks are ignored on purpose.
|
# Following checks are ignored on purpose.
|
||||||
|
Loading…
Reference in New Issue
Block a user