Module: check_mk
Branch: master
Commit: f203470769a4d49b41cd8c74a4621a99f482c8b2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f203470769a4d4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 14 07:35:51 2019 +0100
Add tests directory to make mypy find testlib in the test files
Change-Id: I8b0094740f842a857c058d96aa5fe02d36e9d7c1
---
tests/static/run_mypy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/static/run_mypy b/tests/static/run_mypy
index 724f616..42cb3a6 100755
--- a/tests/static/run_mypy
+++ b/tests/static/run_mypy
@@ -2,4 +2,4 @@
# mypy_path in mypy.ini doesn't support relative paths, so we need this wrapper...
:-/
cd $(dirname $0)
REPO_PATH=$(realpath ../..)
-MYPYPATH=$REPO_PATH:$REPO_PATH/livestatus/api/python:$REPO_PATH/omd/packages/omd:$(realpath
typeshed) exec ./.venv/bin/mypy "$@"
+MYPYPATH=$REPO_PATH:$REPO_PATH/livestatus/api/python:$REPO_PATH/omd/packages/omd:$REPO_PATH/tests:$(realpath
typeshed) exec ./.venv/bin/mypy "$@"