-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 789 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 789 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
VENV := $(if $(filter Linux,$(shell uname)),virtualenv,venv)
install:
python3.10 -m $(VENV) .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/pip install mazegenerator-2.0.1-py3-none-any.whl
run:
.venv/bin/python3.10 pac-man.py config.json
debug:
.venv/bin/python3.10 -m pdb pac-man.py config.json
lint:
.venv/bin/flake8 . --exclude .venv
.venv/bin/mypy . --warn-return-any --warn-unused-ignores \
--ignore-missing-imports --disallow-untyped-defs \
--check-untyped-defs --exclude .venv
clean:
# Note: run 'deactivate' manually before 'make clean'
# if the venv is currently active in your shell
rm -rf .venv
rm -rf __pycache__
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .mypy_cache -exec rm -rf {} +
find . -name "*.pyc" -delete