From a06c9cd59220dd2f1a53ec8bbf2768f9448d0bfd Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 21 May 2024 01:52:20 -0400 Subject: [PATCH] ci: use pylint 3.2 github formatter instead (#932) Signed-off-by: Henry Schreiner --- .github/matchers/pylint.json | 32 -------------------------------- .github/workflows/tests.yml | 4 +--- noxfile.py | 2 +- 3 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 .github/matchers/pylint.json diff --git a/.github/matchers/pylint.json b/.github/matchers/pylint.json deleted file mode 100644 index e3a6bd16..00000000 --- a/.github/matchers/pylint.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "problemMatcher": [ - { - "severity": "warning", - "pattern": [ - { - "regexp": "^([^:]+):(\\d+):(\\d+): ([A-DF-Z]\\d+): \\033\\[[\\d;]+m([^\\033]+).*$", - "file": 1, - "line": 2, - "column": 3, - "code": 4, - "message": 5 - } - ], - "owner": "pylint-warning" - }, - { - "severity": "error", - "pattern": [ - { - "regexp": "^([^:]+):(\\d+):(\\d+): (E\\d+): \\033\\[[\\d;]+m([^\\033]+).*$", - "file": 1, - "line": 2, - "column": 3, - "code": 4, - "message": 5 - } - ], - "owner": "pylint-error" - } - ] -} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8632869b..ebcd2b05 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,9 +50,7 @@ jobs: submodules: true - name: Run PyLint - run: | - echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" - pipx run nox[uv] -s pylint + run: pipx run nox[uv] -s pylint -- --output-format=github cmake: name: CMake 🐍 ${{ matrix.python-version }} diff --git a/noxfile.py b/noxfile.py index 410158f5..d7fa3f99 100644 --- a/noxfile.py +++ b/noxfile.py @@ -126,7 +126,7 @@ def pylint(session: nox.Session) -> None: Run pylint. """ - session.install("pylint==3.1.*") + session.install("pylint==3.2.*") session.install(".") session.run("pylint", "src", *session.posargs)