Skip to content

Commit

Permalink
build: add mypy dependency group
Browse files Browse the repository at this point in the history
  • Loading branch information
eginhard committed Nov 26, 2024
1 parent 3e156ce commit a63efbf
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ dev = [
"pytest>=8",
"ruff==0.6.9",
]
# Dependencies for running the tests
test = [
"accelerate>=0.20.0",
"torchvision>=0.15.1",
]
mypy = [
"matplotlib>=3.9.2",
"mlflow>=2.18.0",
"mypy>=1.13.0",
"types-psutil>=6.1.0.20241102",
"wandb>=0.18.7",
]

[tool.uv]
default-groups = ["dev", "test"]
Expand Down Expand Up @@ -105,3 +111,16 @@ skip_empty = true
[tool.coverage.run]
source = ["trainer", "tests"]
command_line = "-m pytest"

[[tool.mypy.overrides]]
module = [
"accelerate",
"aim",
"aim.sdk.run",
"apex",
"clearml",
"fsspec",
"plotly",
"soundfile",
]
ignore_missing_imports = true

0 comments on commit a63efbf

Please sign in to comment.