From 1905f954ef9e33a0ce2cc429a50ce39da72982b6 Mon Sep 17 00:00:00 2001 From: DropD Date: Fri, 31 Jan 2025 15:58:06 +0100 Subject: [PATCH] fix unavoidable warnings and force non-ignored warnigns as errors. --- pyproject.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9d60ac7..c559388 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,6 +51,13 @@ norecursedirs = "tests/cases" markers = [ "slow: slow integration tests which are not recommended to run locally for normal development" ] +filterwarnings = [ + "error", + "ignore::UserWarning", + 'ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning', # from aio_pika via duration + "ignore:There is no current event loop:DeprecationWarning", # from plumpy via aiida testing tools + "ignore:Object of type not in session:sqlalchemy.exc.SAWarning", # sqlalchemy via aiida testing tools +] [tool.coverage.run] # Configuration of [coverage.py](https://coverage.readthedocs.io) @@ -85,8 +92,8 @@ installer = "uv" extra-dependencies = [ "ipdb" ] -default-args = [] -extra-args = ["--doctest-modules", '-m not slow'] +default-args = ['-m not slow'] +extra-args = ["--doctest-modules"] [[tool.hatch.envs.hatch-test.matrix]] python = ["3.12"]