Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 2, 2024
1 parent 0a58311 commit 4b38094
Show file tree
Hide file tree
Showing 55 changed files with 512,559 additions and 143 deletions.
1 change: 0 additions & 1 deletion pystocktopus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
pystocktopus: help you maintain your stock dashboard and also predict future for a stock based upon past data
"""


from __future__ import annotations
1 change: 1 addition & 0 deletions pystocktopus/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
pystocktopus.
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions pystocktopus/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import datetime
import json

from polygon import RESTClient

import pystocktopus.config as config
Expand Down
3 changes: 2 additions & 1 deletion pystocktopus/news_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

import pandas as pd
from newsapi import NewsApiClient
from pystocktopus.config import news_api
from transformers import pipeline

from pystocktopus.config import news_api


class News:
"""Class for handling news data."""
Expand Down
2 changes: 1 addition & 1 deletion stock-env/bin/Activate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ command:
PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
For more information on Execution Policies:
For more information on Execution Policies:
https://go.microsoft.com/fwlink/?LinkID=135170
#>
Expand Down
9 changes: 6 additions & 3 deletions stock-env/bin/coverage
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/coverage-3.10
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/coverage3
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/cygdb
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from Cython.Debugger.Cygdb import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/cython
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from Cython.Compiler.Main import setuptools_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(setuptools_main())
9 changes: 6 additions & 3 deletions stock-env/bin/cythonize
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from Cython.Build.Cythonize import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/estimator_ckpt_converter
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from tensorflow_estimator.python.estimator.tools.checkpoint_converter import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/f2py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/fonttools
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from fontTools.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/google-oauthlib-tool
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from google_auth_oauthlib.tool.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/huggingface-cli
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from huggingface_hub.commands.huggingface_cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/import_pb_to_tensorboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from tensorflow.python.tools.import_pb_to_tensorboard import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/markdown_py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from markdown.__main__ import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(run())
9 changes: 6 additions & 3 deletions stock-env/bin/normalizer
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from charset_normalizer.cli import cli_detect
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(cli_detect())
9 changes: 6 additions & 3 deletions stock-env/bin/pip
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/pip3
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/pip3.10
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/py.test
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from pytest import console_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(console_main())
9 changes: 6 additions & 3 deletions stock-env/bin/pyftmerge
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from fontTools.merge import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/pyftsubset
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from fontTools.subset import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())
9 changes: 6 additions & 3 deletions stock-env/bin/pyrsa-decrypt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from rsa.cli import decrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(decrypt())
9 changes: 6 additions & 3 deletions stock-env/bin/pyrsa-encrypt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from rsa.cli import encrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(encrypt())
9 changes: 6 additions & 3 deletions stock-env/bin/pyrsa-keygen
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/Users/akhilsharma/Downloads/porfolio/Stock/stock-env/bin/python3.10
# -*- coding: utf-8 -*-
from __future__ import annotations

import re
import sys

from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(keygen())
Loading

0 comments on commit 4b38094

Please sign in to comment.