]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Move pytest config to pyproject.toml (#1187)
authorTomas R. <tomas.roun8@gmail.com>
Wed, 5 Feb 2025 09:33:01 +0000 (10:33 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Feb 2025 09:33:01 +0000 (11:33 +0200)
pyproject.toml
setup.cfg

index e68b6d5d1aa31b4986918bd2b71f3dede72cf531..98ab326ac7d81ffe36e3410e99d22a63314a604e 100644 (file)
@@ -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"
+]
index ac49ca54ee7f6f0085e867926a230ed8fe01ffab..8183238ab1c7f1b7f360cd8536d5f4f75e3fe170 100644 (file)
--- 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