mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-05-22 23:00:47 +00: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
|
### Specify a different source directory
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: astral-sh/ruff-action@v1
|
- uses: astral-sh/ruff-action@v2
|
||||||
with:
|
with:
|
||||||
src: "./src"
|
src: "./src"
|
||||||
```
|
```
|
||||||
@@ -50,7 +50,7 @@ fix).
|
|||||||
### Specify multiple files
|
### Specify multiple files
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: astral-sh/ruff-action@v1
|
- uses: astral-sh/ruff-action@v2
|
||||||
with:
|
with:
|
||||||
src: >-
|
src: >-
|
||||||
path/to/file1.py
|
path/to/file1.py
|
||||||
@@ -62,7 +62,7 @@ fix).
|
|||||||
This action adds ruff to the PATH, so you can use it in subsequent steps.
|
This action adds ruff to the PATH, so you can use it in subsequent steps.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: astral-sh/ruff-action@v1
|
- uses: astral-sh/ruff-action@v2
|
||||||
- run: ruff check --fix
|
- run: ruff check --fix
|
||||||
- run: ruff format
|
- 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`
|
### Use `ruff format`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: astral-sh/ruff-action@v1
|
- uses: astral-sh/ruff-action@v2
|
||||||
with:
|
with:
|
||||||
args: "format --check"
|
args: "format --check"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user