@@ -61,7 +61,7 @@ development of array-api-extra is made easy with
61
61
at < https://github.com/data-apis/array-api-extra > .
62
62
- ` cd array-api-extra ` .
63
63
- [ Install Pixi] ( https://pixi.sh/latest/#installation ) .
64
- - To enter a development environment:
64
+ - To enter a development environment (if you prefer this to the ` pixi run ` interface) :
65
65
66
66
```
67
67
pixi shell -e dev
@@ -73,71 +73,75 @@ pixi shell -e dev
73
73
pixi run tests
74
74
```
75
75
76
- - To generate the coverage report :
76
+ - To build the docs locally :
77
77
78
78
```
79
- pixi run coverage
79
+ pixi run docs
80
80
```
81
81
82
- - To generate and display the coverage report :
82
+ - To build and preview the docs locally :
83
83
84
84
```
85
- pixi run open-coverage
85
+ pixi run open-docs
86
86
```
87
87
88
- - To build the docs locally :
88
+ - To install pre-commit hooks :
89
89
90
90
```
91
- pixi run docs
91
+ pixi run hooks
92
92
```
93
93
94
- - To build and preview the docs locally :
94
+ - To run pre-commit checks on staged files :
95
95
96
96
```
97
- pixi run open-docs
97
+ pixi run pre-commit
98
98
```
99
99
100
- - To install a [ pre-commit ] ( https://pre-commit.com ) hook :
100
+ - To run the full lint suite :
101
101
102
102
```
103
- pixi run pre-commit-install
103
+ pixi run --environment=lint lint
104
104
```
105
105
106
- - To run the lint suite :
106
+ - To enter an interactive Python prompt :
107
107
108
108
```
109
- pixi run -e lint lint
109
+ pixi run ipython
110
110
```
111
111
112
- - To enter an interactive Python prompt :
112
+ - To run individual parts of the lint suite separately (for example) :
113
113
114
114
```
115
- pixi run ipython
115
+ pixi run --environment=lint pyright
116
+ pixi run --environment=lint dprint
117
+ ```
118
+
119
+ - To generate the coverage report:
120
+
121
+ ```
122
+ pixi run coverage
116
123
```
117
124
118
- - To run individual parts of the lint suite separately :
125
+ - To generate and display the coverage report :
119
126
120
127
```
121
- pixi run -e lint pre-commit
122
- pixi run -e lint pylint
123
- pixi run -e lint mypy
124
- pixi run -e lint pyright
128
+ pixi run open-coverage
125
129
```
126
130
127
131
Alternative environments are available with a subset of the dependencies and
128
132
tasks available in the ` dev ` environment:
129
133
130
134
```
131
- pixi shell -e docs
132
- pixi shell -e tests
133
- pixi shell -e tests-backends
134
- pixi shell -e lint
135
+ pixi shell --environment= docs
136
+ pixi shell --environment= tests
137
+ pixi shell --environment= tests-backends
138
+ pixi shell --environment= lint
135
139
```
136
140
137
141
If you run on a host with CUDA hardware, you can enable extra tests:
138
142
139
143
```
140
- pixi shell -e dev-cuda
141
- pixi shell -e tests-cuda
142
- pixi run -e tests-cuda tests
144
+ pixi shell --environment= dev-cuda
145
+ pixi shell --environment= tests-cuda
146
+ pixi run --environment= tests-cuda tests
143
147
```
0 commit comments