Skip to content

Commit 066c853

Browse files
authored
🛠️ fix(scripts): imports 🛠️ (#242)
* fix #patch * #patch
1 parent e2ca93e commit 066c853

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.github/workflows/sandbox.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ jobs:
8989
# - name: Update intraday
9090
# run: python scripts/update_intraday.py
9191

92+
- name: Update indices
93+
run: python scripts/update_indices.py
94+
9295
- name: Update unemployment
9396
run: python scripts/update_unrate.py
9497

scripts/update_hist_ohlc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import os
2+
import sys
23
from multiprocessing import Process
3-
from hyperdrive.DataSource import Polygon, Alpaca
4-
from hyperdrive.Constants import PathFinder
5-
import hyperdrive.Constants as C
4+
sys.path.append('hyperdrive')
5+
from DataSource import Polygon, Alpaca # noqa autopep8
6+
from Constants import PathFinder # noqa autopep8
7+
import Constants as C # noqa autopep8
68

79
alpc = Alpaca(paper=C.TEST)
810
poly = Polygon(os.environ['POLYGON'])

scripts/update_indices.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from hyperdrive.DataSource import Indices
1+
import sys
2+
sys.path.append('hyperdrive')
3+
from DataSource import Indices # noqa autopep8
24

35
idc = Indices()
46

scripts/update_ohlc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import os
2+
import sys
23
from multiprocessing import Process, Value
3-
from hyperdrive.DataSource import Polygon, Alpaca
4-
from hyperdrive.Constants import PathFinder
5-
import hyperdrive.Constants as C
4+
sys.path.append('hyperdrive')
5+
from DataSource import Polygon, Alpaca # noqa autopep8
6+
from Constants import PathFinder # noqa autopep8
7+
import Constants as C # noqa autopep8
68

79
counter = Value('i', 0)
810
alpc = Alpaca(paper=C.TEST)

0 commit comments

Comments
 (0)