-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
37 lines (30 loc) · 845 Bytes
/
makefile
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
35
36
37
run:
python3 snakegame.py
release:
python3 setup.py sdist
publish:
python setup.py sdist upload -r pypi
format:
autopep8 mokaplayer --recursive --in-place --pep8-passes 2000
autoflake mokaplayer -i -r
clean:
find . -type f -name "*.py[co]" -delete
find . -type f -name "*.ui~" -delete
find . -type d -name "__pycache__" -delete
find . -type f -wholename "*.egg-info/*" -delete
find . -type d -name "*.egg-info" -delete
report-pep8:
mkdir -p reports/pep8
pep8 mokaplayer | pepper8 > reports/pep8/index.html
xdg-open reports/pep8/index.html
help:
@echo ""
@echo "format"
@echo " Format all code with autopep8"
@echo "report-pep8"
@echo " Generate a report (syntax) with pep8 and pepper8"
@echo "run"
@echo " Run the program"
@echo "clean"
@echo " Remove python artifacts."
.PHONY: init test clean run help