Skip to content

Commit 89ab488

Browse files
committed
Use prek instead of pre-commit in noxfile
1 parent a464dc7 commit 89ab488

File tree

3 files changed

+25
-44
lines changed

3 files changed

+25
-44
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Notes:
22
* 'test' command: nox will use poetry.lock to determine dependency versions
3-
* 'lint' command: tools and environments are managed by pre-commit
3+
* 'lint' command: tools and environments are managed by prek/pre-commit
44
* All other commands: the current environment will be used instead of creating new ones
55
"""
66

@@ -88,8 +88,8 @@ def livedocs(session):
8888

8989
@nox.session(python=False)
9090
def lint(session):
91-
"""Run linters and code formatters via pre-commit"""
92-
cmd = 'pre-commit run --all-files'
91+
"""Run linters and code formatters via prek/pre-commit"""
92+
cmd = 'prek run --all-files'
9393
session.run(*cmd.split(' '))
9494

9595

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ dev = [
6464
'coverage~=7.0',
6565
'ipython>=8.0',
6666
'nox~=2025.05',
67-
'pre-commit~=4.2',
67+
'prek>=0.3',
6868
'pyparsing~=3.0',
6969
'pytest~=8.0',
7070
'pytest-cov>=5.0',

uv.lock

Lines changed: 21 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)