Skip to content

Commit

Permalink
Move pytest config to pyproject.toml (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 authored Feb 5, 2025
1 parent d7ea829 commit 0596065
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
9 changes: 0 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0596065

Please sign in to comment.