Skip to content

Commit d66724c

Browse files
henryiiijcfr
authored andcommitted
ci: better pylint job
Signed-off-by: Henry Schreiner <[email protected]>
1 parent b3742cb commit d66724c

File tree

3 files changed

+2
-37
lines changed

3 files changed

+2
-37
lines changed

.github/matchers/pylint.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@ jobs:
2929
with:
3030
extra_args: --hook-stage manual --all-files
3131
- name: Run PyLint
32-
run: |
33-
echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json"
34-
pipx run nox -s pylint
32+
run: pipx run nox -s pylint -- --output-format=github
3533

3634
checks:
3735
name:
3836
🐍 ${{ matrix.python-version }} on ${{ matrix.runs-on }} ${{ matrix.cmake
3937
}}
4038
runs-on: ${{ matrix.runs-on }}
41-
needs: [pre-commit]
4239
strategy:
4340
fail-fast: false
4441
matrix:

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def pylint(session: nox.Session) -> None:
3030
"""
3131
# This needs to be installed into the package environment, and is slower
3232
# than a pre-commit check
33-
session.install(".", "pylint")
33+
session.install("-e.", "pylint")
3434
session.run("pylint", "cython_cmake", *session.posargs)
3535

3636

0 commit comments

Comments
 (0)