Skip to content

Commit

Permalink
README.md: astral-sh/ruff-action@v1 --> v2 (#21)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
cclauss authored Dec 6, 2024
1 parent f2e3221 commit e5ab5d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ fix).
### Specify a different source directory
```yaml
- uses: astral-sh/ruff-action@v1
- uses: astral-sh/ruff-action@v2
with:
src: "./src"
```
### Specify multiple files
```yaml
- uses: astral-sh/ruff-action@v1
- uses: astral-sh/ruff-action@v2
with:
src: >-
path/to/file1.py
Expand All @@ -62,15 +62,15 @@ 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
```
### Use `ruff format`

```yaml
- uses: astral-sh/ruff-action@v1
- uses: astral-sh/ruff-action@v2
with:
args: "format --check"
```
Expand Down

0 comments on commit e5ab5d4

Please sign in to comment.