Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .pre-commit-config-NO-DOCKER.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ repos:
# Run the formatter.
- id: ruff-format

- repo: https://github.com/fpgmaas/deptry.git
rev: 0.24.0
hooks:
- id: deptry

- repo: local
hooks:
- id: forbid-new-init
Expand Down
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,17 @@ repos:
# Run the formatter.
- id: ruff-format


- repo: local
hooks:


- id: deptry-uv
name: deptry (uv)
language: system
pass_filenames: false # deptry expects a project path, not filenames
entry: uv run deptry .

- id: forbid-new-init
name: Check if __init__.py is added to the src folder
entry: python
Expand All @@ -61,3 +70,4 @@ repos:
name: Check commits for secrets, using gitleaks Docker image
entry: make run-gitleaks
language: system

17 changes: 4 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,11 @@ requires-python = ">=3.10,<4.0"
dependencies = [
"uvicorn>0.34.0",
"fastapi[standard]>=0.115.11",
"fastapi-cli>=0.0.7",
"opentelemetry-instrumentation-fastapi>=0.52b1",
"typing-inspect>=0.9.0",
"typing_extensions>=4.12.2",
"python-dotenv>=1.0.1",
"numpy>=2.2.4",
"requests>=2.32.3",
"requests-oauthlib>=2.0.0",
"requests-toolbelt>=1.0.0",
"polars>=1.26.0",
"pandas>=2.3.0",
"pydantic>=2.9.2",
"pydantic-settings>=2.8.1",
"pydantic_core>=2.23.4",
"fastparquet>=2024.11.0",
"pyarrow>=20.0.0",
"tqdm>=4.67.1",
"scikit-learn>=1.7.2",
"pandera[pandas]>=0.27.0",
]
classifiers = [
Expand Down Expand Up @@ -120,6 +107,9 @@ convention = "google"
quote-style = "double"
indent-style = "space"

[tool.deptry]
extend_exclude = ["DEMO"]

[dependency-groups]
dev = [
"ipykernel>=6.29.5",
Expand All @@ -133,6 +123,7 @@ dev = [
"mkdocstrings >= 0.29.0",
"mkdocstrings-python >= 1.16.7",
"mkdocs-material >= 9.6.9",
"deptry>=0.24.0",
{include-group = "test"},
]
test = [
Expand Down
Loading