From c9c00749062f40c9af0b8665b3947660b757f549 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:58:12 +0200 Subject: [PATCH] Enforce repo-review rule PP309: Filter warnings specified `filterwarnings` must be set (probably to at least `["error"]`). Python will hide important warnings otherwise, like deprecations. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 2445ad35..861715eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,7 @@ repository = "https://github.com/ImagingDataCommons/highdicom.git" [tool.pytest.ini_options] minversion = "7" addopts = ["--doctest-modules", "-ra", "--strict-config", "--strict-markers"] +filterwarnings = ["error"] testpaths = ["tests"] log_cli_level = "INFO" xfail_strict = true