-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
49 lines (41 loc) · 929 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
42
43
44
45
46
47
48
49
APP_NAME?=dbt-toolkit
REGISTRY?=eu.gcr.io/voi-data-warehouse
IMAGE=$(REGISTRY)/$(APP_NAME)
SHORT_SHA?=$(shell git rev-parse --short HEAD)
VERSION?=$(SHORT_SHA)
.PHONY: build
build: clean-build
python3 setup.py sdist bdist_wheel
.PHONY: clean-build
clean-build:
rm -rf build dist
.PHONY: install-dev
install-dev:
@echo "Installing it locally with editable mode"
@pip install -e .
.PHONY: type
type:
@echo "Running mypy"
@pipenv run mypy .
.PHONY: check-lint
check-lint:
@echo "Running isort"
@pipenv run isort --check-only .
@echo "Running black"
@pipenv run black --check .
@echo "Running flake"
@pipenv run flake8
.PHONY: lint
lint:
@echo "Running isort"
@pipenv run isort .
@echo "Running black"
@pipenv run black .
@echo "Running flake"
@pipenv run flake8
.PHONY: test
test:
@pipenv run pytest tests/
.PHONY: test-coverage
test-coverage:
@pipenv run pytest tests/ --cov=dbttoolkit --cov-report=xml