Skip to content

Commit 0596065

Browse files
authored
Move pytest config to pyproject.toml (#1187)
1 parent d7ea829 commit 0596065

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,25 @@ ignore = [
3030

3131
[tool.ruff.lint.per-file-ignores]
3232
"scripts/import_cldr.py" = ["E402"]
33+
34+
[tool.pytest.ini_options]
35+
norecursedirs = [
36+
"venv*",
37+
".*",
38+
"_*",
39+
"scripts",
40+
"{args}"
41+
]
42+
doctest_optionflags = [
43+
"ELLIPSIS",
44+
"NORMALIZE_WHITESPACE",
45+
"ALLOW_UNICODE",
46+
"IGNORE_EXCEPTION_DETAIL"
47+
]
48+
markers = [
49+
"all_locales: parameterize test with all locales"
50+
]
51+
filterwarnings = [
52+
# The doctest for format_number would raise this, but we don't really want to see it.
53+
"ignore:babel.numbers.format_decimal:DeprecationWarning"
54+
]

setup.cfg

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
[tool:pytest]
2-
norecursedirs = venv* .* _* scripts {args}
3-
doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE ALLOW_UNICODE IGNORE_EXCEPTION_DETAIL
4-
markers =
5-
all_locales: parameterize test with all locales
6-
filterwarnings =
7-
# The doctest for format_number would raise this, but we don't really want to see it.
8-
ignore:babel.numbers.format_decimal:DeprecationWarning
9-
101
[metadata]
112
license_files = LICENSE

0 commit comments

Comments
 (0)