-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 716 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
none: help
help:
@echo "DiamondQuest: A math mining adventure."
@echo
@echo "run Run Word Peril."
@echo "test Run pytests for Word Peril."
@echo "tidy Tidy up cruft (pyc, pycache, eggs)."
@echo
@echo "venv Build the venv based on requirements.txt & req-dev.txt"
@echo "clean Delete the venv"
clean:
rm -r venv
.PHONY: clean
venv:
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install -r requirements.txt
venv/bin/pip install -r req-dev.txt
run: venv
venv/bin/pip install .
venv/bin/python3 -m wordperil
.PHONY: run
format: venv
cd src && ../venv/bin/black -l 80 wordperil
.PHONY: format
tidy: venv
venv/bin/python3 -m pycleanup --egg --pyc --cache
.PHONY: tidy