-
Notifications
You must be signed in to change notification settings - Fork 69
/
Makefile
36 lines (30 loc) · 794 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
all_targets: lint test clean-pyc clean-build clean-crawler
lint:
flake8 *.py
test:
python3 ./spidy/tests.py
rm -rf ./logs ./saved
clean-pyc:
rm -rf ./spidy/__pycache__
find . -name "*.pyc" -delete
find . -name "*.pyo" -delete
clean-build:
-rm -rf build
-rm -rf dist
-rm -rf *.egg-info
clean-crawler:
-rm -rf ./spidy/logs
-rm -rf ./spidy/saved
find . -name "*.txt" -not -name "requirements.txt" -delete
find . -name "None" -delete
help:
@echo " lint"
@echo " Check PEP8 compliance with flake8."
@echo " test"
@echo " Run all tests in spidy/tests.py."
@echo " clean-pyc"
@echo " Remove Python artifacts."
@echo " clean-build"
@echo " Remove build artifacts."
@echo " clean-crawler"
@echo " Remove crawler artifacts."