forked from gouline/dbt-metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 792 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
build: clean
python3 setup.py sdist bdist_wheel
clean:
rm -rf build dist
requirements:
pip3 install -r requirements.txt
pip3 install -r requirements-test.txt
.PHONY: requirements
fmt:
black .
check-fmt:
black --check .
.PHONY: check-fmt
check-lint-python:
pylint dbtmetabase
.PHONY: check-lint-python
check-lint-rst:
rst-lint README.rst
.PHONY: check-lint-rst
check-type:
mypy dbtmetabase
.PHONY: check-type
check: check-fmt check-lint-python check-lint-rst check-type
.PHONY: check
test:
python3 -m unittest tests
.PHONY: test
dist-check: build
twine check dist/*
.PHONY: dist-check
dist-upload: check
twine upload dist/*
.PHONY: dist-upload
dev-install: build
pip3 uninstall -y dbt-metabase && pip3 install dist/dbt_metabase-*-py3-none-any.whl
.PHONY: dev-install