@@ -61,7 +61,7 @@ development of array-api-extra is made easy with
6161 at < https://github.com/data-apis/array-api-extra > .
6262- ` cd array-api-extra ` .
6363- [ 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) :
6565
6666```
6767pixi shell -e dev
@@ -73,71 +73,75 @@ pixi shell -e dev
7373pixi run tests
7474```
7575
76- - To generate the coverage report :
76+ - To build the docs locally :
7777
7878```
79- pixi run coverage
79+ pixi run docs
8080```
8181
82- - To generate and display the coverage report :
82+ - To build and preview the docs locally :
8383
8484```
85- pixi run open-coverage
85+ pixi run open-docs
8686```
8787
88- - To build the docs locally :
88+ - To install pre-commit hooks :
8989
9090```
91- pixi run docs
91+ pixi run hooks
9292```
9393
94- - To build and preview the docs locally :
94+ - To run pre-commit checks on staged files :
9595
9696```
97- pixi run open-docs
97+ pixi run pre-commit
9898```
9999
100- - To install a [ pre-commit ] ( https://pre-commit.com ) hook :
100+ - To run the full lint suite :
101101
102102```
103- pixi run pre-commit-install
103+ pixi run --environment=lint lint
104104```
105105
106- - To run the lint suite :
106+ - To enter an interactive Python prompt :
107107
108108```
109- pixi run -e lint lint
109+ pixi run ipython
110110```
111111
112- - To enter an interactive Python prompt :
112+ - To run individual parts of the lint suite separately (for example) :
113113
114114```
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
116123```
117124
118- - To run individual parts of the lint suite separately :
125+ - To generate and display the coverage report :
119126
120127```
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
125129```
126130
127131Alternative environments are available with a subset of the dependencies and
128132tasks available in the ` dev ` environment:
129133
130134```
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
135139```
136140
137141If you run on a host with CUDA hardware, you can enable extra tests:
138142
139143```
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
143147```
0 commit comments