-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (35 loc) · 1.29 KB
/
Makefile
File metadata and controls
50 lines (35 loc) · 1.29 KB
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
pyright: ## Runs pyright
@./scripts/pyright
isort: ## Runs isort
@./scripts/isort .
black: ## Runs black
@./scripts/black .
lint: ## Runs linting tools
@./scripts/lint
lint-fix: ## Runs a linting pipeline with auto fixing: black, isort, ruff, and mypy
@./scripts/lint --fix
install: ## Installs the project (only main dependencies)
@./scripts/install --only main
install-dev: ## Installs the project (with dev dependencies)
@./scripts/install --only main,dev
ruff: ## Runs ruff
@./scripts/ruff
model-serve: ## Serves the model in local environment
@./scripts/serve-model "./artifacts/models/churn/model.flm" \
--app-title "Churn classifier" \
--app-description "Predict whether a customer will leave a company or not" \
--app-version "1.0.0"
model-start: ## Start serving the model container
@./scripts/start-model
model-stop: ## Stop serving the model container
@./scripts/stop-model
airflow-start: ## Start serving airflow
@./scripts/start-airflow
airflow-stop: ## Start serving airflow
@./scripts/stop-airflow
test: ## Runs tests
@./scripts/test
.PHONY: help pyright isort black lint lint-fix install install-dev
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'