mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:24:57 +00:00
Fix ruff-action
documentation to consistently use args
instead of options
(#10249)
This commit is contained in:
parent
cbd927f346
commit
fe6afbe406
1 changed files with 3 additions and 3 deletions
|
@ -417,7 +417,7 @@ Alternatively, you can include `ruff-action` as a step in any other workflow fil
|
|||
`ruff-action` accepts optional configuration parameters via `with:`, including:
|
||||
|
||||
- `version`: The Ruff version to install (default: latest).
|
||||
- `options`: The command-line arguments to pass to Ruff (default: `"check"`).
|
||||
- `args`: The command-line arguments to pass to Ruff (default: `"check"`).
|
||||
- `src`: The source paths to pass to Ruff (default: `"."`).
|
||||
|
||||
For example, to run `ruff check --select B ./src` using Ruff version `0.0.259`:
|
||||
|
@ -425,7 +425,7 @@ For example, to run `ruff check --select B ./src` using Ruff version `0.0.259`:
|
|||
```yaml
|
||||
- uses: chartboost/ruff-action@v1
|
||||
with:
|
||||
src: "./src"
|
||||
version: 0.0.259
|
||||
args: --select B
|
||||
args: check --select B
|
||||
src: "./src"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue