From f2961daec166f5b853e53970808d8999c6a3e9d0 Mon Sep 17 00:00:00 2001 From: "ry.yamafuji" Date: Thu, 4 Dec 2025 18:27:51 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=BF=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pyruff.yml | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/pyruff.yml b/.github/workflows/pyruff.yml index 0e5408b..a2bb9eb 100644 --- a/.github/workflows/pyruff.yml +++ b/.github/workflows/pyruff.yml @@ -35,27 +35,21 @@ jobs: - name: Check Initer id: checkIniter run: | - set +e - ls -la echo "Running Ruff Lint Check..." - python -m ruff --version - python -m ruff check src tests examples --no-cache --output-format json --output-file ruff-report.json - echo "ruff exit code: $?" + python -m ruff check . --exit-zero --no-cache --output-format json --output-file ruff-report.json echo "Ruff Lint Check completed. ruff-report.json" + - name: Generate Linter Report + id: generateLinterReport + run: | + python scripts/generate_linter_from_json.py - # - name: Generate Linter Report - # id: generateLinterReport - # run: | - # python scripts/generate_linter_from_json.py - - - # - name: pull_request message with Ruff Lint results - # id: prMessageRuffLint - # run: | - # curl -v -X POST \ - # -H "Content-Type: application/json" \ - # -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ - # -d @lint-result.json \ - # ${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/8/comments + - name: pull_request message with Ruff Lint results + id: prMessageRuffLint + run: | + curl -v -X POST \ + -H "Content-Type: application/json" \ + -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ + -d @lint-result.json \ + ${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/8/comments