Skip to content

Commit

Permalink
feat: merged env shortcuts into one for ease of use
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtmurphy committed Oct 6, 2024
1 parent 6445431 commit 8da30f1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down

0 comments on commit 8da30f1

Please sign in to comment.