Skip to content

Commit a4c491e

Browse files
committed
refactor: simplify ruff GitHub Actions workflow
- Use args to customize ruff check with --output-format=github - Add --diff to format check for better error output - Remove duplicate ruff check invocation
1 parent bc5a818 commit a4c491e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: astral-sh/ruff-action@v3
1514
- uses: astral-sh/ruff-action@v3
1615
with:
17-
args: format --check
16+
args: check --output-format=github
17+
- run: ruff format --check --diff
1818

1919
mypy:
2020
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)