summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 0f277da26815c8b78687017a5d211737e2b2660f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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