forked from eadwinCode/django-ninja-extra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (32 loc) · 968 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
.PHONY: help docs
.DEFAULT_GOAL := help
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clean: ## Removing cached python compiled files
find . -name \*pyc | xargs rm -fv
find . -name \*pyo | xargs rm -fv
find . -name \*~ | xargs rm -fv
find . -name __pycache__ | xargs rm -rfv
install: ## Install dependencies
make clean
flit install --deps develop --symlink
pre-commit install -f
lint: ## Run code linters
make clean
black --check ninja_extra tests
isort --check ninja_extra tests
flake8 ninja_extra tests
mypy ninja_extra
fmt format: ## Run code formatters
make clean
black ninja_extra tests
isort ninja_extra tests
test: ## Run tests
make clean
pytest .
test-cov: ## Run tests with coverage
make clean
pytest --cov=ninja_extra --cov-report term-missing tests
doc-deploy: ## Run Deploy Documentation
make clean
mkdocs gh-deploy --force