From c7993952c585b66acad5275e39dbf91cf662b975 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 12 Nov 2026 22:07:12 +0100 Subject: chore(core): enable stricter Ruff lint rules Expand Ruff checks for bugbear, complexity, pathlib, return statements, simplifications, upgrades, and docstring style. Apply the resulting behavior-neutral cleanup across application and test code. --- tests/test_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_config.py') diff --git a/tests/test_config.py b/tests/test_config.py index 7bec8b6..599c930 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -56,7 +56,7 @@ def test_missing_production_configuration_is_fatal(tmp_path: Path) -> None: class MissingProductionConfig(ProductionConfig): CONFIG_FILE = str(tmp_path / "missing.cfg") - with pytest.raises(FileNotFoundError, match="missing.cfg"): + with pytest.raises(FileNotFoundError, match=r"missing.cfg"): create_app(MissingProductionConfig) @@ -103,7 +103,7 @@ def test_endpoint_limits_are_inherited_from_defaults() -> None: assert config.REQUEST_TIMEOUT == 5.0 assert config.REQUEST_TOTAL_TIMEOUT == 30.0 - assert DefaultConfig.ALLOWED_HOSTNAMES == set() + assert set() == DefaultConfig.ALLOWED_HOSTNAMES assert DefaultConfig.IGNORED_HOSTNAMES == () -- cgit v1.3.1