-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
49 lines (38 loc) · 1.04 KB
/
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
42
43
44
45
46
47
48
49
.PHONY: help
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: build
build: ## Build project with compose
docker-compose build
.PHONY: up
up: ## Run project with compose
docker-compose up
.PHONY: down
down: ## Reset project containers with compose
docker-compose down -v --remove-orphans
.PHONY: lock
lock: ## Refresh pipfile.lock
pipenv lock --pre
.PHONY: requirements
requirements: ## Refresh requirements.txt from pipfile.lock
pipenv lock --requirements --dev >| requirements.txt
.PHONY: test
test: ## Run project tests
docker-compose run --rm web pytest -vv
.PHONY: lint
lint: ## Linter project code.
isort -rc -m 3 --tc .
black --line-length=120 .
.PHONY: mypy
mypy: ## mypy check.
mypy --ignore-missing-imports .
.PHONY: flake8
flake8: ## flake8 check.
flake8 .
.PHONY: safety
safety: ## apply safety check in project.
safety check
.PHONY: format
format: ## format project code.
isort -rc -m 3 --tc .
black --line-length=120 .