File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ pixi shell -e dev
4343pixi run tests
4444```
4545
46+ - To display the coverage report:
47+
48+ ```
49+ pixi run open-coverage
50+ ```
51+
4652- To build the docs locally:
4753
4854```
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ pytest = "*"
8181
8282[tool .pixi .feature .lint .tasks ]
8383pre-commit-install = { cmd = " pre-commit install" }
84- pre-commit = { cmd = " pre-commit run -v -- all-files --show-diff-on-failure " }
84+ pre-commit = { cmd = " pre-commit run -- all-files" }
8585mypy = { cmd = " mypy" , cwd = " ." }
8686pylint = { cmd = [" pylint" , " array_api_extra" ], cwd = " src" }
8787pyright = { cmd = " basedpyright" , cwd = " ." }
@@ -94,9 +94,11 @@ array-api-strict = "*"
9494numpy = " *"
9595
9696[tool .pixi .feature .tests .tasks ]
97- tests = { cmd = " pytest" }
98- tests-ci = { cmd = " pytest -ra --cov --cov-report=xml --cov-report=term --durations=20" }
97+ tests = { cmd = " pytest -v " }
98+ tests-ci = { cmd = " pytest -v - ra --cov --cov-report=xml --cov-report=term --durations=20" }
9999tests-vendor = { cmd = " pytest vendor_tests" }
100+ coverage = { cmd = [" coverage" , " html" ], depends-on = [" tests-ci" ] }
101+ open-coverage = { cmd = [" open" , " htmlcov/index.html" ], depends-on = [" coverage" ] }
100102
101103[tool .pixi .feature .docs .dependencies ]
102104sphinx = " >=7.0"
You can’t perform that action at this time.
0 commit comments