Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
id: python
with:
python-version: "3.x"
- uses: pre-commit/action@v3.0.1
- uses: j178/prek-action@v1
- name: PyLint checks
run: pipx run --python "${{ steps.python.outputs.python-path }}" nox -s pylint -- --output-format=github

Expand Down
6 changes: 3 additions & 3 deletions bin/bump_version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

# /// script
# dependencies = ["click", "packaging"]
# dependencies = ["click", "packaging", "prek"]
# ///


Expand Down Expand Up @@ -139,7 +139,7 @@ def bump_version() -> None:
# run pre-commit to update the README changelog
subprocess.run(
[
"pre-commit",
"prek",
"run",
"--files=docs/changelog.md",
],
Expand All @@ -149,7 +149,7 @@ def bump_version() -> None:
# run pre-commit to check that no errors occurred on the second run
subprocess.run(
[
"pre-commit",
"prek",
"run",
"--files=docs/changelog.md",
],
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def lint(session: nox.Session) -> None:
"""
Run the linter.
"""
session.install("pre-commit")
session.run("pre-commit", "run", "--all-files", *session.posargs)
session.install("prek")
session.run("prek", "run", "--all-files", *session.posargs)


@nox.session(tags=["lint"])
Expand Down
Loading