-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
30 lines (22 loc) · 635 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
all: lint test clean
.PHONY: lint
lint:
@echo -e "\033[0;36m## start lint ############\033[0m"
flake8 \
--exclude venv \
# --extend-ignore W605\
# --max-line-length=130
@echo -e "\033[1;32m## lint success ! #########\033[0m"
.PHONY: test
test:
@echo -e "\033[0;36m## start test #############\033[0m"
python -m unittest main.py
@echo -e "\033[1;32m test end \033[0m"
.PHONY: clean
clean:
@echo -e "\033[0;36m## start clean ############\033[0m"
# rm -r ./__pycache__
find . -type f -name *.pyc -delete
find . -type d -name __pycache__ -delete
rm tmp/*.*
@echo -e "\033[1;32m## cleaned ################\033[0m"