summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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..3b93bba
--- /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 cli-project/pyproject.toml flashcards-project/pyproject.toml
+ rm -rf .venv
+ uv venv
+ uv pip install -r requirements.txt
+
+.PHONY: all test clean