@@ -32,11 +32,8 @@ dependencies = []
3232test = [
3333 " pytest >=6" ,
3434 " pytest-cov >=3" ,
35- ]
36- dev = [
37- " pytest >=6" ,
38- " pytest-cov >=3" ,
39- " pylint" ,
35+ " array-api-strict" ,
36+ " numpy" ,
4037]
4138docs = [
4239 " sphinx>=7.0" ,
@@ -68,29 +65,30 @@ platforms = ["linux-64", "osx-arm64", "win-64"]
6865[tool .pixi .pypi-dependencies ]
6966array-api-extra = { path = " ." , editable = true }
7067
71- [tool .pixi .tasks ]
72- pre-commit = { cmd = " pre-commit install && pre-commit run -v --all-files --show-diff-on-failure" }
73-
7468[tool .pixi .feature .lint .dependencies ]
69+ pre-commit = " *"
70+ mypy = " *"
7571pylint = " *"
72+ # import dependencies for mypy:
73+ array-api-strict = " *"
74+ numpy = " *"
7675
7776[tool .pixi .feature .lint .tasks ]
77+ pre-commit = { cmd = " pre-commit install && pre-commit run -v --all-files --show-diff-on-failure" }
78+ mypy = { cmd = " mypy" , cwd = " ." }
7879pylint = { cmd = [" pylint" , " array_api_extra" ], cwd = " src" }
79- lint = { depends-on = [" pre-commit" , " pylint" ] }
80+ lint = { depends-on = [" pre-commit" , " pylint" , " mypy " ] }
8081
8182[tool .pixi .feature .test .dependencies ]
8283pytest = " >=6"
8384pytest-cov = " >=3"
85+ array-api-strict = " *"
86+ numpy = " *"
8487
8588[tool .pixi .feature .test .tasks ]
8689test = { cmd = " pytest" }
8790test-ci = { cmd = " pytest -ra --cov --cov-report=xml --cov-report=term --durations=20" }
8891
89- [tool .pixi .feature .dev .dependencies ]
90- pytest = " >=6"
91- pytest-cov = " >=3"
92- pylint = " *"
93-
9492[tool .pixi .feature .docs .dependencies ]
9593sphinx = " >=7.0"
9694furo = " >=2023.08.17"
@@ -100,6 +98,15 @@ myst_parser = ">=0.13"
10098sphinx_copybutton = " *"
10199sphinx_autodoc_typehints = " *"
102100
101+ [tool .pixi .feature .docs .tasks ]
102+ docs = { cmd = [" sphinx-build" , " ." , " build/" ], cwd = " docs" }
103+
104+ [tool .pixi .feature .dev .dependencies ]
105+ ipython = " *"
106+
107+ [tool .pixi .feature .dev .tasks ]
108+ ipython = { cmd = " ipython" }
109+
103110[tool .pixi .feature .py309 .dependencies ]
104111python = " ~=3.9.0"
105112
@@ -109,9 +116,9 @@ python = "~=3.12.0"
109116[tool .pixi .environments ]
110117default = { solve-group = " default" }
111118lint = { features = [" lint" ], solve-group = " default" }
112- docs = { features = [" docs" ], solve-group = " default" }
113119test = { features = [" test" ], solve-group = " default" }
114- dev = { features = [" dev" , " docs" ], solve-group = " default" }
120+ docs = { features = [" docs" ], solve-group = " default" }
121+ dev = { features = [" lint" , " test" , " docs" , " dev" ], solve-group = " default" }
115122ci-py309 = [" py309" , " test" ]
116123ci-py312 = [" py312" , " test" ]
117124
0 commit comments