@@ -32,11 +32,8 @@ dependencies = []
32
32
test = [
33
33
" pytest >=6" ,
34
34
" pytest-cov >=3" ,
35
- ]
36
- dev = [
37
- " pytest >=6" ,
38
- " pytest-cov >=3" ,
39
- " pylint" ,
35
+ " array-api-strict" ,
36
+ " numpy" ,
40
37
]
41
38
docs = [
42
39
" sphinx>=7.0" ,
@@ -68,29 +65,30 @@ platforms = ["linux-64", "osx-arm64", "win-64"]
68
65
[tool .pixi .pypi-dependencies ]
69
66
array-api-extra = { path = " ." , editable = true }
70
67
71
- [tool .pixi .tasks ]
72
- pre-commit = { cmd = " pre-commit install && pre-commit run -v --all-files --show-diff-on-failure" }
73
-
74
68
[tool .pixi .feature .lint .dependencies ]
69
+ pre-commit = " *"
70
+ mypy = " *"
75
71
pylint = " *"
72
+ # import dependencies for mypy:
73
+ array-api-strict = " *"
74
+ numpy = " *"
76
75
77
76
[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 = " ." }
78
79
pylint = { cmd = [" pylint" , " array_api_extra" ], cwd = " src" }
79
- lint = { depends-on = [" pre-commit" , " pylint" ] }
80
+ lint = { depends-on = [" pre-commit" , " pylint" , " mypy " ] }
80
81
81
82
[tool .pixi .feature .test .dependencies ]
82
83
pytest = " >=6"
83
84
pytest-cov = " >=3"
85
+ array-api-strict = " *"
86
+ numpy = " *"
84
87
85
88
[tool .pixi .feature .test .tasks ]
86
89
test = { cmd = " pytest" }
87
90
test-ci = { cmd = " pytest -ra --cov --cov-report=xml --cov-report=term --durations=20" }
88
91
89
- [tool .pixi .feature .dev .dependencies ]
90
- pytest = " >=6"
91
- pytest-cov = " >=3"
92
- pylint = " *"
93
-
94
92
[tool .pixi .feature .docs .dependencies ]
95
93
sphinx = " >=7.0"
96
94
furo = " >=2023.08.17"
@@ -100,6 +98,15 @@ myst_parser = ">=0.13"
100
98
sphinx_copybutton = " *"
101
99
sphinx_autodoc_typehints = " *"
102
100
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
+
103
110
[tool .pixi .feature .py309 .dependencies ]
104
111
python = " ~=3.9.0"
105
112
@@ -109,9 +116,9 @@ python = "~=3.12.0"
109
116
[tool .pixi .environments ]
110
117
default = { solve-group = " default" }
111
118
lint = { features = [" lint" ], solve-group = " default" }
112
- docs = { features = [" docs" ], solve-group = " default" }
113
119
test = { 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" }
115
122
ci-py309 = [" py309" , " test" ]
116
123
ci-py312 = [" py312" , " test" ]
117
124
0 commit comments