From 05960657895d7dbb2e1ab47cb8e004f9c6953457 Mon Sep 17 00:00:00 2001 From: "Tomas R." Date: Wed, 5 Feb 2025 10:33:01 +0100 Subject: [PATCH] Move pytest config to pyproject.toml (#1187) --- pyproject.toml | 22 ++++++++++++++++++++++ setup.cfg | 9 --------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e68b6d5d1..98ab326ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,3 +30,25 @@ ignore = [ [tool.ruff.lint.per-file-ignores] "scripts/import_cldr.py" = ["E402"] + +[tool.pytest.ini_options] +norecursedirs = [ + "venv*", + ".*", + "_*", + "scripts", + "{args}" +] +doctest_optionflags = [ + "ELLIPSIS", + "NORMALIZE_WHITESPACE", + "ALLOW_UNICODE", + "IGNORE_EXCEPTION_DETAIL" +] +markers = [ + "all_locales: parameterize test with all locales" +] +filterwarnings = [ + # The doctest for format_number would raise this, but we don't really want to see it. + "ignore:babel.numbers.format_decimal:DeprecationWarning" +] diff --git a/setup.cfg b/setup.cfg index ac49ca54e..8183238ab 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,11 +1,2 @@ -[tool:pytest] -norecursedirs = venv* .* _* scripts {args} -doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE ALLOW_UNICODE IGNORE_EXCEPTION_DETAIL -markers = - all_locales: parameterize test with all locales -filterwarnings = - # The doctest for format_number would raise this, but we don't really want to see it. - ignore:babel.numbers.format_decimal:DeprecationWarning - [metadata] license_files = LICENSE