-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·42 lines (32 loc) · 846 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
REPO_ROOT ?= $(shell git rev-parse --show-toplevel)
clean:
rm -rf venv
clean-local:
rm -rf logs
rm -f airflow.cfg
rm -f airflow.db
rm -f webserver_config.py
clean-metadata-db:
rm -rf postgres_data
init-venv: clean
pip3 install virtualenv; \
virtualenv venv --python=python3.8; \
source ./venv/bin/activate; \
pip3 install -r requirements-dev.txt; \
pip3 install -r requirements-providers.txt; \
pip3 install -r requirements.txt;
init-local: clean-local init-venv
source ./venv/bin/activate; \
./.local/init
airflow-up: airflow-down
docker-compose up --build
airflow-down:
docker-compose down
lint:
. ./venv/bin/activate; \
python3 -m flake8 .
run-tests:
AIRFLOW_HOME=$(REPO_ROOT) python3 -m pytest tests -vv --disable-pytest-warnings
fix-imports:
. ./venv/bin/activate; \
python3 -m isort . --skip venv --skip logs