diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9578b0d..e6938139 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/api/pyproject.toml b/api/pyproject.toml index 80901d04..67c2f2ef 100644 --- a/api/pyproject.toml +++ b/api/pyproject.toml @@ -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"]