From 5192810ff6a41e62e41d16fcf636663d177a1232 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 16 Mar 2017 16:50:41 +1300 Subject: Make mypy succeed with imports on master.py We get little benefit from our mypy QA checks at the moment, because we skip imports. This patch is what's needed to make mypy succeed with imports on a single file: master.py It also updates mypy to the current version, and enables a QA check. Mypy bugs I encountered: dict.update with kwargs not supported: https://github.com/python/mypy/issues/1031 property setters and getters must be adjacent: https://github.com/python/mypy/issues/1465 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index a9904e87..a1ed53f7 100644 --- a/tox.ini +++ b/tox.ini @@ -36,6 +36,8 @@ commands = mitmproxy/tools/dump.py \ mitmproxy/tools/web/ \ mitmproxy/contentviews/ + mypy --ignore-missing-imports \ + mitmproxy/master.py [testenv:individual_coverage] deps = -- cgit v1.2.3