Skip to content

Commit

Permalink
Revert pyproject tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Dec 12, 2024
1 parent d11cc0f commit f03114b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 0 additions & 6 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ pixi shell -e dev
pixi run tests
```

- To display the coverage report:

```
pixi run open-coverage
```

- To build the docs locally:

```
Expand Down
2 changes: 1 addition & 1 deletion pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pytest = "*"

[tool.pixi.feature.lint.tasks]
pre-commit-install = { cmd = "pre-commit install" }
pre-commit = { cmd = "pre-commit run --all-files" }
pre-commit = { cmd = "pre-commit run -v --all-files --show-diff-on-failure" }
mypy = { cmd = "mypy", cwd = "." }
pylint = { cmd = ["pylint", "array_api_extra"], cwd = "src" }
pyright = { cmd = "basedpyright", cwd = "." }
Expand All @@ -99,11 +99,9 @@ array-api-strict = "*"
numpy = "*"

[tool.pixi.feature.tests.tasks]
tests = { cmd = "pytest -v" }
tests-ci = { cmd = "pytest -v -ra --cov --cov-report=xml --cov-report=term --durations=20" }
tests = { cmd = "pytest" }
tests-ci = { cmd = "pytest -ra --cov --cov-report=xml --cov-report=term --durations=20" }
tests-vendor = { cmd = "pytest vendor_tests" }
coverage = { cmd = ["coverage", "html"], depends-on = ["tests-ci"] }
open-coverage = { cmd = ["open", "htmlcov/index.html"], depends-on = ["coverage"] }

[tool.pixi.feature.docs.dependencies]
sphinx = ">=7.0"
Expand Down

0 comments on commit f03114b

Please sign in to comment.