-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 857 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
.DEFAULT_GOAL := help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: clean
clean: clean_pyc ## Clean all PYC in the system
.PHONY: clean_pyc
clean_pyc: ## Cleans all *.pyc in the system
find . -type f -name "*.pyc" -delete || true
.PHONY: clean_pycache
clean_pycache: ## Removes the __pycaches__
find . -type d -name "*__pycache__*" -delete
.PHONY: serve-docs
serve-docs: ## Runs the local docs
mkdocs serve
.PHONY: build-docs
build-docs: ## Runs the local docs
mkdocs build
.PHONY: test
test: ## Runs the tests
pytest $(TESTONLY) --disable-pytest-warnings -s -vv && scripts/clean
.PHONY: requirements
requirements: ## Install requirements for development
pip install -r requirements/base.txt
ifndef VERBOSE
.SILENT:
endif