From 38ed5b3d348c1a2ab49141ce0e6a0b18287cd1a7 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 1 Oct 2023 09:31:50 -0500 Subject: [PATCH] packaging(pytest): Move configuration to pyproject.toml --- pyproject.toml | 12 ++++++++++++ setup.cfg | 9 --------- 2 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index b654c67b..fc1a1404 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -159,6 +159,18 @@ exclude_lines = [ "@overload( |$)", ] +[tool.pytest.ini_options] +addopts = "--reruns=0 --tb=short --no-header --showlocals --doctest-modules" +doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE" +testpaths = [ + "src/unihan_db", + "tests", + "docs", +] +filterwarnings = [ + "ignore:The frontend.Option(Parser)? class.*:DeprecationWarning::", +] + [build-system] requires = ["poetry_core>=1.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index d693fb12..00000000 --- a/setup.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[tool:pytest] -filterwarnings = - ignore:The frontend.Option(Parser)? class.*:DeprecationWarning:: -addopts = --reruns=0 --tb=short --no-header --showlocals --doctest-modules -doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE -testpaths = - src/unihan_db - tests - docs