From 8e79c27e0fc8fd34feaa806cb750eab9a89f8d5a Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Sun, 18 Feb 2024 08:46:35 +0100 Subject: [PATCH] Move some setup.cfg settings to pyproject.toml The two remaining options stay in setup.cfg for the following reasons: - flake8 does not support pyproject.toml yet: https://github.com/PyCQA/flake8/issues/234 - the doctest option is not completely transparent so I am leaving it there for now --- pyproject.toml | 8 +------- setup.cfg | 5 +++++ 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 171774896f..e4513f1e4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,11 +68,5 @@ config-settings = {build-dir = "_build"} before-all = "bash packaging/install_dependencies.sh" environment = { PATH = "/nmodlwheel/flex/bin:/nmodlwheel/bison/bin:$PATH" } -[tool.pytest] +[tool.pytest.ini_options] testpaths = "test/unit/pybind" - -[tool.doctest] -builder = "doctest" - -[tool.flake8] -max-line-length = 100 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000..54a600626f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[doctest] +builder = doctest + +[flake8] +max-line-length = 100