File tree Expand file tree Collapse file tree 6 files changed +66
-2
lines changed
Expand file tree Collapse file tree 6 files changed +66
-2
lines changed Original file line number Diff line number Diff line change 4141
4242 - name : Lint with autopep8
4343 run : |
44- autopep8 --exit-code --recursive --diff --aggressive ./src
44+ autopep8 --exit-code --recursive --diff --max-line-length 120 ./src
4545
4646 - name : Test with pytest
4747 run : pytest
Original file line number Diff line number Diff line change 1+ {
2+ "recommendations" : [
3+ " github.vscode-github-actions" ,
4+ " ms-python.autopep8" ,
5+ " ms-python.vscode-pylance" ,
6+ " ms-python.python"
7+ ]
8+ }
Original file line number Diff line number Diff line change 1+ {
2+ // Use IntelliSense to learn about possible attributes.
3+ // Hover to view descriptions of existing attributes.
4+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+ "version" : " 0.2.0" ,
6+ "configurations" : [
7+ {
8+ "name" : " Python: Current File" ,
9+ "type" : " debugpy" ,
10+ "request" : " launch" ,
11+ "program" : " ${file}" ,
12+ "console" : " integratedTerminal" ,
13+ "justMyCode" : true
14+ }
15+ ]
16+ }
Original file line number Diff line number Diff line change 1+ {
2+ "files.autoSave" : " onFocusChange" ,
3+ "files.trimTrailingWhitespace" : true ,
4+ "files.insertFinalNewline" : true ,
5+ "terminal.integrated.fontSize" : 15 ,
6+ "python.terminal.activateEnvironment" : true ,
7+ "python.testing.unittestEnabled" : false ,
8+ "python.testing.pytestEnabled" : true ,
9+ "python.testing.pytestArgs" : [
10+ " tests"
11+ ],
12+ "python.analysis.typeCheckingMode" : " standard" ,
13+ "python.analysis.extraPaths" : [
14+ " ./src"
15+ ],
16+ "[python]" : {
17+ "editor.formatOnSave" : true ,
18+ "editor.defaultFormatter" : " ms-python.autopep8"
19+ },
20+ "autopep8.args" : [
21+ " --max-line-length=100"
22+ ],
23+ "pylint.args" : [
24+ " --max-line-length=100"
25+ ],
26+ "pylint.severity" : {
27+ "convention" : " Information" ,
28+ "error" : " Error" ,
29+ "fatal" : " Error" ,
30+ "refactor" : " Hint" ,
31+ "warning" : " Warning" ,
32+ "info" : " Information"
33+ }
34+ }
Original file line number Diff line number Diff line change 1+ {
2+ "AzureWebJobsFeatureFlags" : " EnableWorkerIndexing" ,
3+ "AzureWebJobsDisableHomepage" : true ,
4+ "AzureFunctionsJobHost__extensions__http__routePrefix" : " "
5+ }
Original file line number Diff line number Diff line change 44"""
55from datetime import date
66from json import dump
7+ from typing import Union
78from pandas import DataFrame , to_datetime , to_datetime
89from log import logger
910from requests import get
1011
1112
12- def download_data (ticker : str ) -> tuple [bool , dict | str ]:
13+ def download_data (ticker : str ) -> tuple [bool , Union [ dict , str ] ]:
1314 """
1415 Download historic data for a given stock ticker symbol from Nasdaq.com.
1516 Details about it: https://www.nasdaq.com/market-activity/quotes/historical
You can’t perform that action at this time.
0 commit comments