File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,10 +104,9 @@ uv run pre-commit install
104104 uv run make doctest -C docs
105105 ` ` `
106106
107- - To compute the code coverage locally, you should run the unit tests and the doc tests together,
108- with the ` --cov` flag:
107+ - To compute the code coverage locally, you should run the unit tests with the ` --cov` flag:
109108 ` ` ` bash
110- uv run pytest tests/unit tests/doc --cov=src
109+ uv run pytest tests/unit --cov=src
111110 ` ` `
112111
113112 > [! TIP]
@@ -148,8 +147,7 @@ should create it.
148147### Testing
149148
150149We ask contributors to implement the unit tests necessary to check the correctness of their
151- implementations. Besides, whenever usage examples are provided, we require the example' s code to be
152- tested in ` tests/doc` . We aim for 100% code coverage, but we greatly appreciate any PR, even with
150+ implementations. We aim for 100% code coverage, but we greatly appreciate any PR, even with
153151insufficient code coverage. To ensure that the tensors generated during the tests are on the right
154152device and dtype, you have to use the partial functions defined in `tests/utils/tensors.py` to
155153instantiate tensors. For instance, instead of
Original file line number Diff line number Diff line change @@ -163,7 +163,6 @@ ignore = [
163163
164164[tool .ruff .lint .per-file-ignores ]
165165"**/conftest.py" = [" ARG" ] # Can't change argument names in the functions pytest expects
166- "tests/doc/test_rst.py" = [" ARG" ] # For the lightning example
167166
168167[tool .ruff .lint .flake8-annotations ]
169168suppress-dummy-args = true
You can’t perform that action at this time.
0 commit comments