summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndreeaRadoescu <randreea23@gmail.com>2024-10-23 19:24:53 +0200
committerAndreeaRadoescu <randreea23@gmail.com>2024-10-23 19:24:53 +0200
commite289af0c914058490949ace441aada8182de0126 (patch)
tree702f304f1158fb715505f2c3de360358e42f4400 /Makefile
parent875014ebcb8898e6161e7e2d09b127fc4fa595a2 (diff)
parent19aad3fdc3b10312743ff0399a5ad472e6573cad (diff)
Merge branch 'master' into feature/addGUI
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
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