mirror of https://github.com/astral-sh/ruff
Fix `ruff-action` documentation to consistently use `args` instead of `options` (#10249)
This commit is contained in:
parent
cbd927f346
commit
fe6afbe406
|
|
@ -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…
Reference in New Issue