mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
docs/integrations.md: Upgrade example to astral-sh/ruff-action@v2 (#14800)
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary https://docs.astral.sh/ruff/integrations/#github-actions upgraded for https://github.com/astral-sh/ruff-action/releases <!-- What's the purpose of the change? What does it do, and why? --> ## Test Plan <!-- How was it tested? --> @eifinger Your review, please.
This commit is contained in:
parent
40b0b67dd9
commit
5aab57b3e9
1 changed files with 5 additions and 5 deletions
|
@ -46,13 +46,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v2
|
||||
```
|
||||
|
||||
Alternatively, you can include `ruff-action` as a step in any other workflow file:
|
||||
|
||||
```yaml
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v2
|
||||
```
|
||||
|
||||
`ruff-action` accepts optional configuration parameters via `with:`, including:
|
||||
|
@ -61,12 +61,12 @@ Alternatively, you can include `ruff-action` as a step in any other workflow fil
|
|||
- `args`: The command-line arguments to pass to Ruff (default: `"check"`).
|
||||
- `src`: The source paths to pass to Ruff (default: `[".", "src"]`).
|
||||
|
||||
For example, to run `ruff check --select B ./src` using Ruff version `0.0.259`:
|
||||
For example, to run `ruff check --select B ./src` using Ruff version `0.8.0`:
|
||||
|
||||
```yaml
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v2
|
||||
with:
|
||||
version: 0.0.259
|
||||
version: 0.8.0
|
||||
args: check --select B
|
||||
src: "./src"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue