Skip to content

Commit f4e3191

Browse files
chore: use prek (#1065)
1 parent 68c619d commit f4e3191

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

noxfile.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,12 @@ def cover(session: nox.Session) -> None:
130130

131131
@nox.session(python="3.12")
132132
def lint(session: nox.Session) -> None:
133-
"""Run pre-commit linting."""
134-
session.install("pre-commit")
133+
"""Run the linters."""
134+
session.install("prek")
135135
session.run(
136-
"pre-commit",
136+
"prek",
137137
"run",
138138
"--all-files",
139-
"--show-diff-on-failure",
140-
"--hook-stage=manual",
141139
*session.posargs,
142140
)
143141

0 commit comments

Comments
 (0)