From 19aad3fdc3b10312743ff0399a5ad472e6573cad Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Wed, 16 Oct 2024 22:45:23 +0200 Subject: Add makefile, pre-commit hook --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0f277da --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +test: all + ./venv/bin/pytest tests/* + +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: requirements.txt + rm -rf venv + python -m venv venv + ./venv/bin/pip install -r requirements.txt + +.PHONY: all test clean -- cgit v1.2.3