mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Link to astral-sh/ruff-action
(#13551)
This commit is contained in:
parent
bee498d635
commit
668730cc28
2 changed files with 6 additions and 6 deletions
|
@ -25,7 +25,7 @@ jobs:
|
|||
run: ruff check --output-format=github .
|
||||
```
|
||||
|
||||
Ruff can also be used as a GitHub Action via [`ruff-action`](https://github.com/chartboost/ruff-action).
|
||||
Ruff can also be used as a GitHub Action via [`ruff-action`](https://github.com/astral-sh/ruff-action).
|
||||
|
||||
By default, `ruff-action` runs as a pass-fail test to ensure that a given repository doesn't contain
|
||||
any lint rule violations as per its [configuration](configuration.md).
|
||||
|
@ -46,13 +46,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: chartboost/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
```
|
||||
|
||||
Alternatively, you can include `ruff-action` as a step in any other workflow file:
|
||||
|
||||
```yaml
|
||||
- uses: chartboost/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
```
|
||||
|
||||
`ruff-action` accepts optional configuration parameters via `with:`, including:
|
||||
|
@ -64,7 +64,7 @@ Alternatively, you can include `ruff-action` as a step in any other workflow fil
|
|||
For example, to run `ruff check --select B ./src` using Ruff version `0.0.259`:
|
||||
|
||||
```yaml
|
||||
- uses: chartboost/ruff-action@v1
|
||||
- uses: astral-sh/ruff-action@v1
|
||||
with:
|
||||
version: 0.0.259
|
||||
args: check --select B
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue