Skip to content

Commit

Permalink
Changes for RTD to import docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
kai490952010 committed May 11, 2021
1 parent 6133785 commit 9da120a
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 44 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ python-binance = "*"
pycoingecko = "*"
pre-commit = "*"
psycopg2 = "*"
tickerdata = {path = "./../tickerdata"}
apache-airflow-providers-postgres = "*"
tickerdata = {editable = true, ref = "dev", git = "https://github.com/kai490952010/tickerdata.git"}

[dev-packages]
sphinx = "*"
Expand Down
87 changes: 44 additions & 43 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Actions Status](https://github.com/kai490952010/trading_alerts/workflows/Build/badge.svg)](https://github.com/kai490952010/trading_alerts/actions)

Trading alerts
==============

Expand Down
17 changes: 17 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,28 @@
import os
import sys

import mock

os.environ["AIRFLOW_HOME"] = "../trading_alerts"
sys.path.insert(0, os.path.abspath(".."))
sys.path.insert(0, os.path.abspath("../trading_alerts/dags/"))
sys.path.insert(0, os.path.abspath("../trading_alerts/plugins/"))


MOCK_MODULES = [
"apache-airflow",
"pandas",
"python-binance",
"pycoingecko",
"pre-commit",
"psycopg2",
"apache-airflow-providers-postgres",
"tickerdata",
]

for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()

import trading_alerts # noqa: E402

# print(sys.path)
Expand Down
Empty file added trading_alerts/dags/__init__.py
Empty file.

0 comments on commit 9da120a

Please sign in to comment.