From cda8197669409689be291660f93cb288ab2d31b3 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 9 Nov 2024 20:35:56 +0100 Subject: Migrate to project-based structure --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1288113 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +test: all + cd solo-tool-project/test && ../../venv/bin/pytest *test.py + cd cli-project/test && ../../venv/bin/pytest *test.py + +all: venv .git/hooks/pre-commit + +clean: + rm -rf venv + +.git/hooks/pre-commit: pre-commit + install -m 755 pre-commit .git/hooks/pre-commit + +venv: venv/touchfile + +venv/touchfile: requirements.txt solo-tool-project/pyproject.toml cli-project/pyproject.toml gui-project/pyproject.toml + rm -rf venv + python -m venv venv + ./venv/bin/pip install -r requirements.txt + touch venv/touchfile + +.PHONY: all test clean -- cgit v1.2.3