summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/web_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web/web_config.py')
-rw-r--r--python/fatcat_web/web_config.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py
index d58214cc..fb3b55ab 100644
--- a/python/fatcat_web/web_config.py
+++ b/python/fatcat_web/web_config.py
@@ -1,3 +1,8 @@
+# type: ignore
+# TODO: we are ignoring mypy type checks on this file because of all the
+# 'os.environ' usage, which is causing trouble with newer mypy. Should resolve
+# (annotate?) and re-enable type checking here
+
"""
Default configuration for fatcat web interface (Flask application).
@@ -8,6 +13,7 @@ This config is *only* for the web interface, *not* for any of the workers or
import scripts.
"""
+
import os
import subprocess
from typing import Union
@@ -43,7 +49,7 @@ def test_bool_str() -> None:
assert bool_str("FALSE") is False
-def fetch_git_sha():
+def fetch_git_sha() -> str:
"""
Get short commit id, runnable anywhere within a git repository.
"""