mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-05-13 05:00:14 +02:00
README.md: astral-sh/ruff-action@v1 --> v2 (#21)
README.md upgraded to match https://github.com/astral-sh/ruff-action/releases ```diff - - uses: astral-sh/ruff-action@v1 + - uses: astral-sh/ruff-action@v2 ```
This commit is contained in:
@@ -42,7 +42,7 @@ fix).
|
||||
### Specify a different source directory
|
||||
|
||||
```yaml
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v2
|
||||
with:
|
||||
src: "./src"
|
||||
```
|
||||
@@ -50,7 +50,7 @@ fix).
|
||||
### Specify multiple files
|
||||
|
||||
```yaml
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v2
|
||||
with:
|
||||
src: >-
|
||||
path/to/file1.py
|
||||
@@ -62,7 +62,7 @@ fix).
|
||||
This action adds ruff to the PATH, so you can use it in subsequent steps.
|
||||
|
||||
```yaml
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v2
|
||||
- run: ruff check --fix
|
||||
- run: ruff format
|
||||
```
|
||||
@@ -70,7 +70,7 @@ This action adds ruff to the PATH, so you can use it in subsequent steps.
|
||||
### Use `ruff format`
|
||||
|
||||
```yaml
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v2
|
||||
with:
|
||||
args: "format --check"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user