Skip to content

Commit df14aa0

Browse files
style: pre-commit fixes
1 parent 9e16f26 commit df14aa0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/pages/guides/gha_wheels.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ test-command = "pytest {project}/tests"
6262
build-verbosity = 1
6363
```
6464

65-
The `test-extras` will cause the pip install to use `[tests]`. The `test-command`
66-
will use pytest to run your tests. You can also set the build verbosity (`-v` in
67-
pip) if you want to.
65+
The `test-extras` will cause the pip install to use `[tests]`. The
66+
`test-command` will use pytest to run your tests. You can also set the build
67+
verbosity (`-v` in pip) if you want to.
6868

6969
## Making an SDist
7070

docs/pages/guides/tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def tests(session: nox.Session) -> None:
212212
"""
213213
Run the unit and regular tests.
214214
"""
215-
session.install(".[test]")
215+
session.install(".[tests]")
216216
session.run("pytest", *session.posargs)
217217
```
218218
<!-- prettier-ignore-end -->

src/sp_repo_review/checks/pyproject.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Any, Optional
3+
from typing import Any
44

55
from . import mk_url
66

@@ -248,7 +248,7 @@ class PP310(PyProject):
248248
url = mk_url("pytest")
249249

250250
@staticmethod
251-
def check(pyproject: dict[str, Any]) -> Optional[bool]:
251+
def check(pyproject: dict[str, Any]) -> bool | None:
252252
"""
253253
254254
Tests target should be `tests` not `test`
@@ -278,7 +278,7 @@ class PP311(PyProject):
278278
url = mk_url("pytest")
279279

280280
@staticmethod
281-
def check(pyproject: dict[str, Any]) -> Optinal[bool]:
281+
def check(pyproject: dict[str, Any]) -> Optional[bool]:
282282
"""
283283
284284
docs target should be `docs` not `doc`

0 commit comments

Comments
 (0)