Skip to content

Commit

Permalink
chore: Use astral-sh/ruff-action@v3 to run the Python linter (#3114)
Browse files Browse the repository at this point in the history
* Use pipx instead of pip to install the ruff linter

* PLC0206

* astral-sh/ruff-action@v3
  • Loading branch information
cclauss authored Jan 2, 2025
1 parent b899fae commit 94448fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user ruff
# Excluding `/gyp` directory as it is been checked in https://github.com/nodejs/gyp-next/ already
- run: ruff check --output-format=github --extend-exclude=gyp --select="E,F,PLC,PLE,UP,W,YTT" --ignore="E721,PLC1901,S101,UP031" --target-version=py38 .
- uses: astral-sh/ruff-action@v3
with:
args: "check --select=E,F,PLC,PLE,UP,W,YTT --ignore=E721,PLC0206,PLC1901,S101,UP031 --target-version=py39"

lint-js:
name: Lint JS
Expand Down

0 comments on commit 94448fc

Please sign in to comment.