Skip to content

Commit

Permalink
Split extra dependencies and dependency groups
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar committed Nov 17, 2024
1 parent ec95cd3 commit 0e6cbbd
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,38 +51,9 @@ dependencies = [
csv = [
"pandas",
]
dev = [
"bump2version",
"coverage",
"mypy",
"parameterized",
"pre-commit-uv",
"Pillow",
"pytest",
"pytest-cov",
"pytest-sugar",
"tox-uv",
"types-Deprecated",
]
doc = [
"einops",
"furo",
"matplotlib",
"sphinx",
"sphinx-autobuild",
"sphinx-copybutton",
"sphinx-gallery",
"sphinxext-opengraph",
]
plot = [
"matplotlib",
]
all = [
"torchio[doc]",
"torchio[plot]",
"torchio[csv]",
"torchio[dev]",
]

[project.scripts]
tiohd = "torchio.cli.print_info:app"
Expand All @@ -96,6 +67,38 @@ Source = "https://github.com/fepegar/torchio"
Documentation = "http://torchio.rtfd.io"
"Release notes" = "https://github.com/fepegar/torchio/releases"

[dependency-groups]
dev = [
{ include-group = "doc" },
{ include-group = "maintain" },
{ include-group = "test" },
]
doc = [
"einops",
"furo",
"matplotlib",
"sphinx",
"sphinx-autobuild",
"sphinx-copybutton",
"sphinx-gallery",
"sphinxext-opengraph",
]
maintain = [
"bump2version",
"pre-commit-uv",
]
test = [
"coverage",
"mypy",
"parameterized",
"pillow",
"pytest",
"pytest-cov",
"pytest-sugar",
"tox-uv",
"types-deprecated",
]

[tool.mypy]
pretty = true

Expand Down Expand Up @@ -146,6 +149,5 @@ ignore = [
"N813",
]


[tool.ruff.lint.isort]
force-single-line = true

0 comments on commit 0e6cbbd

Please sign in to comment.