From a443720ba960043cba811313f98c2bae2f734c2d Mon Sep 17 00:00:00 2001 From: kvrigor Date: Mon, 28 Oct 2024 13:18:17 +0100 Subject: [PATCH] Declared all pytest packages as optional dependencies; in pyproject.toml, changed if 0 -: if False --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 627a8c452..9441e6be5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,8 +26,6 @@ dependencies = [ 'scipy >= 1.12', 'sympy >= 1.5', 'matplotlib', - 'pytest >= 4.5', - 'pytest-xdist >= 1.16', 'pyyaml >= 5.1', 'packaging', 'pyevtk', @@ -56,6 +54,8 @@ dependencies = [ [project.optional-dependencies] test = [ "pytest-cov >= 5.0.0", + 'pytest >= 4.5', + 'pytest-xdist >= 1.16', ] [project.urls] @@ -99,7 +99,7 @@ exclude_also = [ "raise NotImplementedError", # Don't complain if non-runnable code isn't run: - "if 0:", + "if False:", "if __name__ == .__main__.:", # Don't complain about abstract methods, they aren't run: