-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
37 lines (30 loc) · 790 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
VERSION?=$$(git rev-parse --abbrev-ref HEAD)
.PHONY: help
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
.PHONY: freeze
freeze: ## Freeze python requirements
poetry update --lock
.PHONY: install
install: ## Install python requirements
poetry install
.PHONY: format
format: ## Run linter and formatter
isort **/*.py
black or_shifty
black tests
flake8 or_shifty
flake8 tests
.PHONY: verify
verify: ## Run linter and formatter in check mode only
isort --check-only **/*.py
black --check or_shifty
black --check tests
flake8 or_shifty
flake8 tests
.PHONY: test
test: ## Run tests
pytest -vv tests
.PHONY: build
build: ## Build project
poetry build