Skip to content

Commit 5cce8a8

Browse files
committed
leverage dependency groups
1 parent 7056928 commit 5cce8a8

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ check-static: lint typecheck
66

77
# check style and format
88
lint:
9-
uv run -- ruff check --extend-select I .
10-
uv run -- ruff format --check .
9+
uv run --group=lint -- ruff check --extend-select I .
10+
uv run --group=lint -- ruff format --check .
1111

1212
# format code and sort imports
1313
format:
14-
uv run -- ruff check --select I --fix .
15-
uv run -- ruff format .
14+
uv run --group=lint -- ruff check --select I --fix .
15+
uv run --group=lint -- ruff format .
1616

1717
# check static typing annotations
1818
typecheck:
19-
uv run -- mypy stagpy/ tests/
19+
uv run --group=typing -- mypy stagpy/ tests/
2020

2121
# run test suite
2222
test:
23-
uv run -- pytest --cov=./stagpy --cov-report term-missing
23+
uv run --group=test -- pytest --cov=./stagpy --cov-report term-missing
2424

2525
# invoke mkdocs with appropriate dependencies
2626
mkdocs *FLAGS:

pyproject.toml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ dependencies = [
3838
"matplotlib~=3.9",
3939
]
4040

41+
[dependency-groups]
42+
test = [
43+
"pytest>=8.3.3",
44+
"pytest-cov>=5.0.0",
45+
]
46+
lint = [
47+
"ruff>=0.6.9",
48+
]
49+
typing = [
50+
"mypy>=1.11.2",
51+
"pandas-stubs>=2.2.3.241009",
52+
]
53+
4154
[project.scripts]
4255
stagpy = "stagpy.__main__:main"
4356

@@ -61,10 +74,4 @@ module = [
6174
ignore_missing_imports = true
6275

6376
[tool.uv]
64-
dev-dependencies = [
65-
"pytest>=8.3.2",
66-
"pytest-cov>=5.0.0",
67-
"mypy>=1.11.2",
68-
"ruff>=0.6.9",
69-
"pandas-stubs>=2.2.3.241003",
70-
]
77+
default-groups = ["test", "typing"]

0 commit comments

Comments
 (0)