Skip to content

Commit c72769b

Browse files
authored
docs: duplicated session name in cookbook (#1050)
In the `nox_uv` recipe, the session name `type_check` appeared twice, although one session ran the linting and formatting. This PR renames the second session (about linting) to `lint`.
1 parent a0660b1 commit c72769b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ By default, ``nox-uv`` also validates that the lockfile is up-to-date.
172172
s.run("mypy", "src")
173173
174174
@nox_uv.session(uv_only_groups=["lint"])
175-
def type_check(s: nox.Session) -> None:
175+
def lint(s: nox.Session) -> None:
176176
"""`uv sync` only the `lint` dependency group."""
177177
s.run("ruff", "check", ".")
178178
s.run("ruff", "format", "--check", ".")

0 commit comments

Comments
 (0)