From 4ed6f83a0cde5ee51cbc3095b7fe6d38abf8b2aa Mon Sep 17 00:00:00 2001 From: Fabrice Normandin Date: Thu, 30 Jan 2025 11:17:40 -0500 Subject: [PATCH] Move pytest configuration to pyproject.toml Signed-off-by: Fabrice Normandin --- pyproject.toml | 5 +++++ pytest.ini | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 pytest.ini diff --git a/pyproject.toml b/pyproject.toml index 924c1986..660c6e09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,11 @@ source = "uv-dynamic-versioning" [tool.ruff] line-length = 99 +[tool.pytest] +addopts = ["--doctest-modules", "--benchmark-autosave"] +testpaths = ["test", "simple_parsing"] +norecursedirs = ["examples", "docs"] + [tool.ruff.lint] select = ["I", "UP"] # TODO: Fix the imports in __init__.py files and enable these: diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index b5900ab6..00000000 --- a/pytest.ini +++ /dev/null @@ -1,4 +0,0 @@ -[pytest] -addopts = --doctest-modules --benchmark-autosave -testpaths = test simple_parsing -norecursedirs = examples .git .tox .eggs dist build docs *.egg