Skip to content

Commit

Permalink
chore: Set up pre-commit hook for Black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaminB16 committed Mar 10, 2024
1 parent 355bac8 commit c951a66
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 2 deletions.
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

0 comments on commit c951a66

Please sign in to comment.