From 097ab0414c25b3d83e57aad49f51791418161227 Mon Sep 17 00:00:00 2001 From: Fabian Peddinghaus Date: Sat, 9 May 2026 14:00:47 +0200 Subject: [PATCH] Add pytest log_cli config and ignore PLW2901 --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index de71e4f..234e086 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,6 +117,7 @@ ignore = [ "PLC0415", # import outside top-level "PLR0913", # too many arguments "PLR2004", # magic value comparison + "PLW2901", # reassign for loop vars "PYI019", # custom TypeVar "RET504", # unnecessary variable before return "S101", # assert @@ -132,6 +133,10 @@ ignore = [ [tool.pytest.ini_options] testpaths = ["tests"] addopts = ["--import-mode=importlib"] +log_cli = true +log_cli_level = "INFO" +log_cli_format = "%(asctime)s [%(levelname)s] %(message)s (%(filename)s:%(lineno)d)" +log_cli_date_format = "%Y-%m-%d %H:%M:%S" [tool.ty]