From: Tomas R. Date: Wed, 5 Feb 2025 09:33:01 +0000 (+0100) Subject: Move pytest config to pyproject.toml (#1187) X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=05960657895d7dbb2e1ab47cb8e004f9c6953457;p=thirdparty%2Fbabel.git Move pytest config to pyproject.toml (#1187) --- diff --git a/pyproject.toml b/pyproject.toml index e68b6d5d..98ab326a 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 ac49ca54..8183238a 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