Skip to content

Commit b413122

Browse files
authored
chore: Remove outdated doctesting stuff (#639)
1 parent 511561f commit b413122

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

CONTRIBUTING.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
150149
We 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
153151
insufficient code coverage. To ensure that the tensors generated during the tests are on the right
154152
device and dtype, you have to use the partial functions defined in `tests/utils/tensors.py` to
155153
instantiate tensors. For instance, instead of

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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]
169168
suppress-dummy-args = true

0 commit comments

Comments
 (0)