From a1e80fdca16f9f35e3292c48f0b0888fa6a7b577 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 23 Aug 2024 11:57:47 +0000 Subject: [PATCH] Fix ruff warnings --- chatmaild/src/chatmaild/tests/plugin.py | 1 + chatmaild/src/chatmaild/tests/test_config.py | 1 + chatmaild/src/chatmaild/tests/test_doveauth.py | 3 ++- chatmaild/src/chatmaild/tests/test_filtermail.py | 1 + chatmaild/src/chatmaild/tests/test_metadata.py | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/chatmaild/src/chatmaild/tests/plugin.py b/chatmaild/src/chatmaild/tests/plugin.py index c61fd9b1..00b4c34a 100644 --- a/chatmaild/src/chatmaild/tests/plugin.py +++ b/chatmaild/src/chatmaild/tests/plugin.py @@ -7,6 +7,7 @@ from pathlib import Path import pytest + from chatmaild.config import read_config, write_initial_config diff --git a/chatmaild/src/chatmaild/tests/test_config.py b/chatmaild/src/chatmaild/tests/test_config.py index 2ab96344..63d237cb 100644 --- a/chatmaild/src/chatmaild/tests/test_config.py +++ b/chatmaild/src/chatmaild/tests/test_config.py @@ -1,4 +1,5 @@ import pytest + from chatmaild.config import read_config diff --git a/chatmaild/src/chatmaild/tests/test_doveauth.py b/chatmaild/src/chatmaild/tests/test_doveauth.py index b6c828f5..078bec42 100644 --- a/chatmaild/src/chatmaild/tests/test_doveauth.py +++ b/chatmaild/src/chatmaild/tests/test_doveauth.py @@ -4,8 +4,9 @@ import threading import traceback -import chatmaild.doveauth import pytest + +import chatmaild.doveauth from chatmaild.doveauth import ( AuthDictProxy, is_allowed_to_create, diff --git a/chatmaild/src/chatmaild/tests/test_filtermail.py b/chatmaild/src/chatmaild/tests/test_filtermail.py index 74c28bb2..6072d656 100644 --- a/chatmaild/src/chatmaild/tests/test_filtermail.py +++ b/chatmaild/src/chatmaild/tests/test_filtermail.py @@ -1,4 +1,5 @@ import pytest + from chatmaild.filtermail import ( BeforeQueueHandler, SendRateLimiter, diff --git a/chatmaild/src/chatmaild/tests/test_metadata.py b/chatmaild/src/chatmaild/tests/test_metadata.py index d7778a34..3b2da96a 100644 --- a/chatmaild/src/chatmaild/tests/test_metadata.py +++ b/chatmaild/src/chatmaild/tests/test_metadata.py @@ -3,6 +3,7 @@ import pytest import requests + from chatmaild.metadata import ( Metadata, MetadataDictProxy,