Skip to content

Commit

Permalink
chore: use dependency-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Dec 26, 2024
1 parent 2475697 commit 242ff3f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ repos:
- "-a ruff:ruff:v:"
- "-a ruff:ruff-format:v:"
- "-a mypy:mypy:v:"
- "-e mypy-strict"
- "-g dev"
repo: https://github.com/phi-friday/sync-uv-pre-commit
rev: v0.5.1
rev: v0.6.3

- hooks:
- id: ruff
Expand Down
14 changes: 10 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,26 @@ mypy-strict = [
"joblib-stubs[mypy]",
]

[tool.uv]
managed = true
dev-dependencies = [
[dependency-groups]
joblib-dependencies = [
"joblib>=1.4.2",
"numpy>=1.24.4",
"dask>=2023.5.0",
"distributed>=2023.5.0",
"msgpack<1.1" # macos build error
]
dev = [
{ include-group = "joblib-dependencies" },
"ruff==0.8.4",
"pre-commit>=3.5.0",
"poethepoet>=0.27.0",
"joblib-stubs[mypy-strict]",
"msgpack<1.1" # macos build error
]

[tool.uv]
managed = true
default-groups = ["dev"]

[tool.poe.tasks]
lint = ["_lint:check", "_lint:format"]
"_lint:check" = "ruff check src --fix"
Expand Down

0 comments on commit 242ff3f

Please sign in to comment.