From 94448fcd9f090814bce1c4361471dae199dc2e82 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 2 Jan 2025 20:41:47 +0100 Subject: [PATCH] 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 --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c1557d5587..ea55f0a1b1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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