-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
41 lines (30 loc) · 1020 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
38
39
40
41
.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
.PHONY: coverage
coverage: ## Run tests and coverage
pytest --cov=saffier --cov=tests --cov-report=term-missing:skip-covered --cov-report=html tests
.PHONY: requirements
requirements: ## Install requirements for development
pip install -e .[all,dev,test,doc,postgres,mysql,sqlite,testing]
ifndef VERBOSE
.SILENT:
endif