From d9c90cf4886a873d8e66c062b0edad5595ba0477 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Thu, 3 Dec 2020 16:24:11 -0500 Subject: [PATCH] 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 --- tools/mypywrap.sh | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 tools/mypywrap.sh diff --git a/tools/mypywrap.sh b/tools/mypywrap.sh old mode 100644 new mode 100755 index 0b4c51e6189..b1ada5f838c --- a/tools/mypywrap.sh +++ b/tools/mypywrap.sh @@ -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: diff --git a/tox.ini b/tox.ini index c8605a03a61..d78fc00787d 100644 --- a/tox.ini +++ b/tox.ini @@ -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.