-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (35 loc) · 1.16 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
env:
python3 -m venv .env
.env/bin/python3 -m pip install --upgrade pip
.env/bin/pip install apache-airflow
.env/bin/pip install mysqlclient
.env/bin/pip install cbpro
.env/bin/pip install gemini_python
.env/bin/pip install pylint
clean:
rm -rf .env
lint:
.env/bin/pip install --upgrade pylint
.env/bin/pylint --init-hook='import sys; sys.path.append("dags/")' btd_template.py
.env/bin/pylint --init-hook='import sys; sys.path.append("dags/")' dca_template.py
.env/bin/pylint dags/check_orders.py
.env/bin/pylint dags/cryptoflow/__init__.py
.env/bin/pylint dags/cryptoflow/buyatmarket.py
.env/bin/pylint dags/cryptoflow/buythedip.py
.env/bin/pylint dags/cryptoflow/config.py
.env/bin/pylint dags/cryptoflow/slack.py
generate:
.env/bin/python generate.py
dags:
cp -R dags/cryptoflow ~/airflow/dags/
cp dags/*.py ~/airflow/dags/
~/airflow/.env/bin/python -c "from airflow.models import DagBag; d = DagBag();"
install-airflow:
mkdir ~/airflow
cd ~/airflow
python3 -m venv .env
.env/bin/python3 -m pip install --upgrade pip
.env/bin/pip install apache-airflow
.env/bin/pip install mysqlclient
.env/bin/pip install cbpro
.env/bin/pip install gemini_python