From f617f22c00691c7a0cd51dcb568f794788529625 Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Wed, 29 Nov 2023 13:50:43 -0500 Subject: [PATCH] chore: move main pytest options to pyproject.toml, move conftest back to root --- .github/workflows/test-pytest.yml | 3 ++- tests/conftest.py => conftest.py | 0 pyproject.toml | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) rename tests/conftest.py => conftest.py (100%) diff --git a/.github/workflows/test-pytest.yml b/.github/workflows/test-pytest.yml index e81f14bb..59dc0cd1 100644 --- a/.github/workflows/test-pytest.yml +++ b/.github/workflows/test-pytest.yml @@ -26,4 +26,5 @@ jobs: python-version: ${{ matrix.python-version }} cache: "pip" - run: pip install ".[test]" - - run: pytest --doctest-modules --import-mode importlib --hypothesis-show-statistics --hypothesis-profile ci + - run: pytest --hypothesis-profile ci + diff --git a/tests/conftest.py b/conftest.py similarity index 100% rename from tests/conftest.py rename to conftest.py diff --git a/pyproject.toml b/pyproject.toml index 906eca15..3a3847bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,3 +93,7 @@ requires = ["setuptools", "setuptools-scm"] build-backend = "setuptools.build_meta" [tool.setuptools_scm] + +[tool.pytest.ini_options] +minversion = "6.0" +addopts = "--doctest-modules --import-mode importlib"