Skip to content

Commit 46f8167

Browse files
committed
chore: add linter on gyp back
1 parent 2852eae commit 46f8167

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,22 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- run: pip install --user ruff
22-
# Excluding `/gyp` directory as it is been checked in https://github.com/nodejs/gyp-next/ already
22+
# `/gyp` directory is run in the next job.
2323
- 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 .
2424

25+
lint-gyp:
26+
name: Lint Gyp
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip setuptools
33+
pip install --editable ".[dev]"
34+
- run: ./gyp -V && ./gyp --version && gyp -V && gyp --version
35+
- name: Lint with ruff # See gyp/pyproject.toml for settings
36+
run: ruff check --output-format=github .
37+
2538
lint-js:
2639
name: Lint JS
2740
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)