diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 | 
1 files changed, 21 insertions, 0 deletions
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  | 
