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: Remove no_implicit_reexport override.

Anders Kaseorgddba558f1ded
diff --git a/pyproject.toml b/pyproject.toml
index 315172ac5ad..c3eec8d7883 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -44,10 +44,6 @@ local_partial_types = true
plugins = ["mypy_django_plugin.main", "pydantic.mypy"]
-[[tool.mypy.overrides]]
-module = ["zproject.configured_settings", "zproject.settings", "zproject.default_settings"]
-no_implicit_reexport = false
-
[[tool.mypy.overrides]]
module = [
"ahocorasick.*",
@@ -147,6 +143,7 @@ ignore = [
"N802", # Function name should be lowercase
"N806", # Variable in function should be lowercase
"PERF203", # `try`-`except` within a loop incurs performance overhead
+ "PLC0414", # Import alias does not rename original package
"PLC1901", # `s == ""` can be simplified to `not s` as an empty string is falsey
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py
index df27bf8dff1..2aa7fed3002 100644
--- a/zproject/computed_settings.py
+++ b/zproject/computed_settings.py
@@ -11,14 +11,14 @@ from zerver.lib.db import TimeTrackingConnection, TimeTrackingCursor
from .config import (
DEPLOY_ROOT,
- DEVELOPMENT,
- PRODUCTION,
config_file,
get_config,
get_from_file_if_exists,
get_mandatory_secret,
get_secret,
)
+from .config import DEVELOPMENT as DEVELOPMENT
+from .config import PRODUCTION as PRODUCTION
from .configured_settings import (
ADMINS,
ALLOWED_HOSTS,