Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format: Apply Black formatter to the codebase #127

Merged
merged 11 commits into from
Mar 11, 2024
Prev Previous commit
Next Next commit
chore: Set up pre-commit hook for Black formatter
  • Loading branch information
VitaminB16 committed Mar 10, 2024
commit c951a66477712c3ba842751cb24a059b9aaaf1a8
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
language_version: python
args: [--line-length=88, --quiet]
217 changes: 215 additions & 2 deletions poetry.lock

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

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ NUMPY = "1.24.2"
pydantic = "^2.3.0"
tls-client = "^1.0.1"
markdownify = "^0.11.6"
pre-commit = "^3.6.2"
black = "^24.2.0"


[tool.poetry.group.dev.dependencies]
Expand All @@ -28,3 +30,6 @@ jupyter = "^1.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 88