From ddba558f1ded3b53bc415a599d46d359140ee06b Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 8 Sep 2023 16:04:23 -0700 Subject: [PATCH] mypy: Remove no_implicit_reexport override. Signed-off-by: Anders Kaseorg --- pyproject.toml | 5 +---- zproject/computed_settings.py | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 315172ac5a..c3eec8d788 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 df27bf8dff..2aa7fed300 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,