From dcb3ee265881bdccbce0ad489a9eb2f2ca40631f Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Thu, 12 Sep 2024 12:09:53 +0100 Subject: [PATCH] gh-187: add scientific python recommended pytest config --- pyproject.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b1a805ae..f41468d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,3 +58,19 @@ version.source = "vcs" [tool.hatch.build.hooks.vcs] version-file = "glass/_version.py" + +[tool.pytest.ini_options] +minversion = "6.0" +xfail_strict = true +addopts = [ + "-ra", + "--strict-markers", + "--strict-config", +] +testpaths = [ + "tests", +] +log_cli_level = "DEBUG" +filterwarnings = [ + "ignore::DeprecationWarning", +]