Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/black_formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Code Formatting Check

on:
push:
branches: [ main, develop, fix-read-me ]
pull_request:
branches: [ main, develop ]

jobs:
black-formatting:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check code formatting with Black
uses: psf/black@stable
with:
options: "--check --diff"
src: "."
version: "~= 24.0"
4 changes: 2 additions & 2 deletions portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class Portfolio:
def __init__(self):
self.symbols = ["IBM","QBTS"]
self.symbols = ["IBM", "QBTS"]
self.time_frame = 60

def get_stock(self, symbols, time_frame):
Expand Down Expand Up @@ -58,7 +58,7 @@ def data_clean(self):
clean_data = self.data_extract(data)
all_dfs.append(clean_data)
df = pl.DataFrame([all_dfs])

print(df)

return df
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,21 @@ dependencies = [
"scipy==1.16.1",
"seaborn==0.13.2",
]
[tool.black]
line-length = 88
target-version = ['py313']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''