Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

mypy: Specify mypy_path and cache_dir relative to config path.

Anders Kaseorgcca7d30fadff
diff --git a/mypy.ini b/mypy.ini
index fcb7a325af6..a54987d0c5d 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -4,8 +4,8 @@ scripts_are_modules = True
show_traceback = True
# See https://zulip.readthedocs.io/en/latest/testing/mypy.html#mypy-stubs-for-third-party-modules
# for notes on how we manage mypy stubs.
-mypy_path = stubs/
-cache_dir = var/mypy-cache
+mypy_path = $MYPY_CONFIG_FILE_DIR/stubs
+cache_dir = $MYPY_CONFIG_FILE_DIR/var/mypy-cache
# Options to make the checking stricter.
check_untyped_defs = True