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/tasks/test_scanner.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/tasks') diff --git a/tests/tasks/test_scanner.py b/tests/tasks/test_scanner.py index 57782f1..c46a274 100644 --- a/tests/tasks/test_scanner.py +++ b/tests/tasks/test_scanner.py @@ -48,9 +48,11 @@ def test_manual_scan_retries_when_periodic_scan_holds_lock( scanner_module.huey.init_app(app) assert scanner_module.huey.huey is not previous_backend - with scanner_module.huey.lock_task("scan-webmention-sources"): - with pytest.raises(RetryTask) as exc_info: - scanner_module.manual_scan_sources.call_local() + with ( + scanner_module.huey.lock_task("scan-webmention-sources"), + pytest.raises(RetryTask) as exc_info, + ): + scanner_module.manual_scan_sources.call_local() assert exc_info.value.delay == 30 -- cgit v1.3.1