-
Notifications
You must be signed in to change notification settings - Fork 45
/
Makefile
72 lines (51 loc) · 1.66 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
black-check:
@poetry run black --check .
fmt:
@poetry run black .
check: black-check mypy
@poetry run prospector --profile prospector.yaml --no-autodetect
mypy:
@poetry run mypy
cov: check
@poetry run coverage run --source=brickflow --omit "brickflow/sample_dags/*,sample_workflows/*,brickflow/tf/*" -m pytest && \
poetry run coverage report -m && \
poetry run coverage xml
gen-bundle-sdk:
@pip install . --force-reinstall
@./tools/gen-bundle.sh
dev:
@poetry install --all-extras --with dev
@poetry run pre-commit install
@poetry run pre-commit install --hook-type pre-push
deploy_env_setup:
@poetry install --all-extras --with dev
test:
@poetry run coverage run --source=brickflow --omit "brickflow/bundles/*,brickflow/sample_dags/*,sample_workflows/*,brickflow/tf/*" -m pytest && \
poetry run coverage report -m && \
poetry run coverage html
clean:
@rm -rf dist
build: clean
@poetry build
poetry:
@poetry install --all-extras --with dev
coverage: check test
docs:
@poetry run mike deploy -u dev latest
@poetry run mike set-default latest
@poetry run mike serve
deploy-docs:
@poetry run mike deploy --push --update-aliases $(version) latest
docker-local:
docker build -t brickflow:latest --build-arg CACHEBUST="$(shell date +%s)" .
poetry-install:
@pip install --upgrade setuptools && pip install poetry && poetry self add "poetry-dynamic-versioning[plugin]"
get-version:
@poetry version
requirements:
@poetry export -f requirements.txt --output requirements.txt --with dev --without-hashes
docker-build:
@docker build -t brickflow-local .
docker: docker-build
@docker run -it -v "$(shell pwd)":/brickflow brickflow-local /bin/bash
.PHONY: docs