-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (35 loc) · 978 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
50
51
52
53
54
# --- GENERAL ---
.PHONY: clean requirements style
## Delete all compiled Python files
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
## Install Python Dependencies
requirements:
python -m pip install -r requirements.txt
## Apply formatting
style:
black ./dags
isort ./dags ./src --profile black
# --- CONTAINERS ---
.PHONY: containers_init containers_build containers_up containers_down
containers_build:
docker build \
-f docker/airflow_docker_operator/Dockerfile \
-t docker_image_task \
.
containers_init:
docker compose up airflow-init
containers_up:
docker compose up -d
containers_down:
docker compose down
# --- DATA FILES ---
.PHONY: data_interim data_features data
data/interim/%:
python -m house_climate.data.preprocess
data_interim: data/interim/%
data/processed/%: data_interim
python -m house_climate.data.add_features
data_features: data/processed/%
data: data_interim data_features