Skip to content

Commit ae4e3a3

Browse files
committed
Development QOL tweaks
1 parent d58d137 commit ae4e3a3

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

docs/contributing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ pixi shell -e dev
4343
pixi 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
```

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pytest = "*"
8181

8282
[tool.pixi.feature.lint.tasks]
8383
pre-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" }
8585
mypy = { cmd = "mypy", cwd = "." }
8686
pylint = { cmd = ["pylint", "array_api_extra"], cwd = "src" }
8787
pyright = { cmd = "basedpyright", cwd = "." }
@@ -94,9 +94,11 @@ array-api-strict = "*"
9494
numpy = "*"
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" }
9999
tests-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]
102104
sphinx = ">=7.0"

0 commit comments

Comments
 (0)