File tree Expand file tree Collapse file tree 2 files changed +20
-13
lines changed
Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,21 @@ check-static: lint typecheck
66
77# check style and format
88lint :
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
1313format :
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
1818typecheck :
19- uv run -- mypy stagpy/ tests/
19+ uv run --group=typing -- mypy stagpy/ tests/
2020
2121# run test suite
2222test :
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
2626mkdocs * FLAGS :
Original file line number Diff line number Diff 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 ]
4255stagpy = " stagpy.__main__:main"
4356
@@ -61,10 +74,4 @@ module = [
6174ignore_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" ]
You can’t perform that action at this time.
0 commit comments