We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa1cc8d commit 120f130Copy full SHA for 120f130
src/sp_repo_review/checks/pyproject.py
@@ -205,15 +205,16 @@ class PP308(PyProject):
205
@staticmethod
206
def check(pyproject: dict[str, Any]) -> bool:
207
"""
208
- `-ra` should be in `addopts = [...]` (print summary of all fails/errors).
+ An explicit summary flag like `-ra` should be in `addopts = [...]`
209
+ (print summary of all fails/errors).
210
211
```toml
212
[tool.pytest.ini_options]
213
addops = ["-ra", "--strict-config", "--strict-markers"]
214
```
215
216
options = pyproject["tool"]["pytest"]["ini_options"]
- return "-ra" in options.get("addopts", [])
217
+ return any(opt.startswith("-r") for opt in options.get("addopts", []))
218
219
220
class PP309(PyProject):
0 commit comments