-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
32 lines (24 loc) · 816 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
.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
run_local: ## Starts local django server
bash scripts/run_local.sh
run_prod: ## Starts local django server
bash scripts/run_prod.sh
populate_db: ## Populate Application DB with dummy data
python quick_test_seeding.py
test: ## Run tests
pytest .
lint: ## Run code linters
black --check bookstoreapi
isort --check bookstoreapi
flake8 bookstoreapi
fmt format: ## Run code formatters
black bookstoreapi
isort bookstoreapi