From 8da30f10b82bc478631eed50ff5a021fcd07f0f9 Mon Sep 17 00:00:00 2001 From: mwtmurphy Date: Sun, 6 Oct 2024 23:21:09 +0100 Subject: [PATCH] feat: merged env shortcuts into one for ease of use --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index dd2641e..cbf3b78 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,13 @@ -env: pyproject.toml - poetry install +env: +ifeq ($(wildcard pyproject.toml),) + @echo "pyproject.toml does not exist, creating poetry files..." + poetry init -q + poetry add --group dev click ipykernel pytest pytest-cov + poetry add --group dev coverage -E toml +else + @echo "pyproject.toml exists, installing dependencies..." + poetry install +endif major: pyproject.toml poetry version major @@ -10,11 +18,6 @@ minor: pyproject.toml patch: pyproject.toml poetry version patch -poetry_env: - poetry init -q - poetry add --group dev click ipykernel pytest pytest-cov - poetry add --group dev coverage -E toml - src_tests: pyproject.toml poetry run pytest