Skip to content

Commit 94448fc

Browse files
authored
chore: Use astral-sh/ruff-action@v3 to run the Python linter (#3114)
* Use pipx instead of pip to install the ruff linter * PLC0206 * astral-sh/ruff-action@v3
1 parent b899fae commit 94448fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
21-
- run: pip install --user ruff
22-
# Excluding `/gyp` directory as it is been checked in https://github.com/nodejs/gyp-next/ already
23-
- 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 .
21+
- uses: astral-sh/ruff-action@v3
22+
with:
23+
args: "check --select=E,F,PLC,PLE,UP,W,YTT --ignore=E721,PLC0206,PLC1901,S101,UP031 --target-version=py39"
2424

2525
lint-js:
2626
name: Lint JS

0 commit comments

Comments
 (0)