forked from pre-commit/action
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,8 @@ ___ | |
pre-commit/action | ||
================= | ||
|
||
a GitHub action to run [pre-commit](https://pre-commit.com) | ||
A GitHub action to run [pre-commit](https://pre-commit.com) | ||
using [pre-commit-uv](https://github.com/tox-dev/pre-commit-uv). | ||
|
||
### using this action | ||
|
||
|
@@ -31,15 +32,14 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: tox-dev/action-pre-commit-uv@v1 | ||
``` | ||
This does a few things: | ||
- clones the code | ||
- installs python | ||
- installs uv | ||
- sets up the `pre-commit` cache | ||
|
||
### using this action with custom invocations | ||
|
@@ -51,7 +51,7 @@ Here's a sample step configuration that only runs the `flake8` hook against all | |
the files (use the template above except for the `pre-commit` action): | ||
|
||
```yaml | ||
- uses: pre-commit/action@v3.0.1 | ||
- uses: tox-dev/action-pre-commit-uv@v1 | ||
with: | ||
extra_args: flake8 --all-files | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters