Module: check_mk
Branch: master
Commit: f1bfcaa704d8e821141a5b24cc446b2a48fe2079
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f1bfcaa704d8e8…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Mon Dec 3 13:11:10 2018 +0100
Use a mypy.ini file instead of command line arguments
Change-Id: Ib2bf09a0caac31aed41d74f3c853f9cdbf3c8780
---
mypy.ini | 4 ++++
tests/static/Makefile | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/mypy.ini b/mypy.ini
new file mode 100644
index 0000000..cf6ac2b
--- /dev/null
+++ b/mypy.ini
@@ -0,0 +1,4 @@
+[mypy]
+python_version = 2.7
+strict_optional = True
+follow_imports = silent
diff --git a/tests/static/Makefile b/tests/static/Makefile
index c74e556..c591b32 100644
--- a/tests/static/Makefile
+++ b/tests/static/Makefile
@@ -15,7 +15,7 @@ PIPENV := PIPENV_NO_INHERIT=true PIPENV_VENV_IN_PROJECT=true
pipenv
.PHONY: test-mypy
test-mypy: .venv
- MYPYPATH="$(MYPYPATH)" $(PIPENV) run mypy --py2 --follow-imports=silent
--strict-optional $(FILES_TO_CHECK)
+ MYPYPATH="$(MYPYPATH)" $(PIPENV) run mypy --config-file=$(realpath
../../mypy.ini) $(FILES_TO_CHECK)
Pipfile.lock: Pipfile
$(PIPENV) lock