From 98a46e9d128a4eeff3f370d2bc3d37d3d9b370d9 Mon Sep 17 00:00:00 2001 From: Maxime Lucas Date: Tue, 29 Oct 2024 10:30:49 +0100 Subject: [PATCH] moved pytest and isort config into project toml --- .isort.cfg | 3 --- pyproject.toml | 14 ++++++++++++++ pytest.ini | 7 ------- 3 files changed, 14 insertions(+), 10 deletions(-) delete mode 100644 .isort.cfg delete mode 100644 pytest.ini diff --git a/.isort.cfg b/.isort.cfg deleted file mode 100644 index f0c1512c9..000000000 --- a/.isort.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[settings] -skip=__init__.py, benchmarks/env -profile=black \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index b59a2071a..11bdfd522 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -105,3 +105,17 @@ where = ["."] [tool.setuptools.dynamic.version] attr = "xgi.__version__" + +[tool.pytest.ini_options] +# always run doctests +addopts = "--doctest-modules --ignore=docs" + +# custom markers +markers = [ + "webtest: mark test as an online test.", + "slow: mark test as slow." +] + +[tool.isort] +skip = ["__init__.py", "benchmarks/env"] +profile = "black" \ No newline at end of file diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 6bf8c38e4..000000000 --- a/pytest.ini +++ /dev/null @@ -1,7 +0,0 @@ -[pytest] -# always run doctests -addopts = --doctest-modules --ignore=docs -# custom markers -markers = - webtest: mark test as an online test. - slow: mark test as slow. \ No newline at end of file