From 07e0c28369997f785abe6d7823b1c34979bdfaef Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Fri, 28 Jun 2024 10:32:40 +0200 Subject: [PATCH] Define test execution in noxfile --- noxfile.py | 7 +++++++ pyproject.toml | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 noxfile.py diff --git a/noxfile.py b/noxfile.py new file mode 100644 index 0000000..4189daa --- /dev/null +++ b/noxfile.py @@ -0,0 +1,7 @@ +import nox + + +@nox.session +def tests(session): + session.install(".[testing]") + session.run("pytest") diff --git a/pyproject.toml b/pyproject.toml index 2693110..09d7e9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,7 +63,8 @@ dev = [ "tifffile>=2024.2.12", "xmltodict", "licensecheck", - "hdbscan" + "hdbscan", + "nox" ] # potentially relevant in the future again: