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

Blue Formatting #9

Closed
wants to merge 3 commits into from
Closed
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
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: docs/img/
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: ["-l", "120"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["-m", "3", "--tc"]
- repo: https://github.com/grantjenks/blue
rev: "v0.9.1"
hooks:
- id: blue
args: ["-l", "120"]
exclude: api.py
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies = [
"orthauth ~= 0.0.18",
"cython",
"psycopg2-binary",
"pre-commit ~= 4.1.0"
]
name = "quantdb"
version = "0.1.0"
Expand All @@ -22,6 +23,12 @@ readme = "README.md"
packages = [{ include = "quantdb" }]
requires-python = ">=3.10"

[tool.pre-commit]
repos = [
{ repo = "https://github.com/pre-commit/pre-commit-hooks", rev = "v4.4.0", hooks = [{ id = "trailing-whitespace" }, { id = "end-of-file-fixer" }] },
{ repo = "https://github.com/grantjenks/blue", rev = "0.9.1", hooks = [{ id = "blue" }] },
{ repo = "https://github.com/PyCQA/flake8", rev = "6.1.0", hooks = [{ id = "flake8" }] }
]
# [project.scripts]
# quantdb-fastapi = "uvicorn quantdb.main:app --reload"

Expand Down
Loading