Skip to content

Commit

Permalink
Format toml properly, add toml formatter to pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
harryjmoss committed Jan 25, 2024
1 parent f9e9206 commit 5864482
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,7 @@ repos:
name: detect-secrets - Detect secrets in staged code
args: [ "--baseline", ".secrets.baseline" ]
exclude: .*/tests/.*|^\.cruft\.json|.env.example$
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
46 changes: 23 additions & 23 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@ build-backend = "setuptools.build_meta"
name = "hyui-api"
version = "0.0.1"
dependencies = [
"loguru == 0.6.0",
"notifiers == 1.3.3",
"hyui-models",
"arrow == 1.2.3",
"fastapi[all] == 0.109.0",
"fastapi-utils==0.2.1",
"pandas == 1.5.1",
"pyodbc == 4.0.35",
"psycopg2-binary == 2.9.5",
"pydantic >=1.10.2<2.0",
"SQLAlchemy == 1.4.41",
"sqlmodel == 0.0.8",
"uvicorn[standard] == 0.18.3",
"scikit-learn == 1.1.3",
"imbalanced-learn == 0.10.1",
"category-encoders == 2.6.0",
"xgboost == 1.5.0",
"loguru == 0.6.0",
"notifiers == 1.3.3",
"hyui-models",
"arrow == 1.2.3",
"fastapi[all] == 0.109.0",
"fastapi-utils==0.2.1",
"pandas == 1.5.1",
"pyodbc == 4.0.35",
"psycopg2-binary == 2.9.5",
"pydantic >=1.10.2,<2.0",
"SQLAlchemy == 1.4.41",
"sqlmodel == 0.0.8",
"uvicorn[standard] == 0.18.3",
"scikit-learn == 1.1.3",
"imbalanced-learn == 0.10.1",
"category-encoders == 2.6.0",
"xgboost == 1.5.0"
]

[project.optional-dependencies]
test = [
"pre-commit == 2.20.0",
"pytest == 7.1.3"
"pre-commit == 2.20.0",
"pytest == 7.1.3"
]

[tool.setuptools.package-data]
"*" = ["*.sql", "*.json", "*.db"]

[tool.pytest.ini_options]
minversion = "7.1.3"
testpaths = [
"src/api/tests"
"src/api/tests"
]

[tool.setuptools.package-data]
"*" = ["*.sql", "*.json", "*.db"]

0 comments on commit 5864482

Please sign in to comment.