From 05d2c7c84bf167bb754058a9a29f88943bbc7249 Mon Sep 17 00:00:00 2001 From: Not_Leonian <75620009+NotLeonian@users.noreply.github.com> Date: Thu, 24 Sep 2026 00:08:21 +0900 Subject: [PATCH 1/2] =?UTF-8?q?verify=20CI=20=E3=81=AB=20Python=20?= =?UTF-8?q?=E3=81=AE=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/verify.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 1f81b64..81e402d 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -40,6 +40,22 @@ jobs: run: npm ci - name: npm formatting check run: npm run format:check + - uses: astral-sh/setup-uv@v10 + with: + python-version: "3.13" + - name: Python format and lint check + shell: bash + run: | + set -euo pipefail + mapfile -d '' -t python_files < <(git ls-files -z -- '*.py') + if [[ "${#python_files[@]}" -eq 0 ]]; then + exit 0 + fi + + uv run --locked ruff format --check "${python_files[@]}" + uv run --locked ruff check "${python_files[@]}" + uv run --locked pyright --project pyright-checks.json "${python_files[@]}" + uv run --locked mypy "${python_files[@]}" - name: install clang-format 20 run: | sudo apt-get update From 8606e2c0cc6c6dd4e44815d3f362df3cf49c778b Mon Sep 17 00:00:00 2001 From: Not_Leonian <75620009+NotLeonian@users.noreply.github.com> Date: Thu, 24 Sep 2026 00:13:42 +0900 Subject: [PATCH 2/2] =?UTF-8?q?astral-sh=20=E3=81=AE=E3=82=BF=E3=82=B0?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 81e402d..d8d37df 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -40,7 +40,7 @@ jobs: run: npm ci - name: npm formatting check run: npm run format:check - - uses: astral-sh/setup-uv@v10 + - uses: astral-sh/setup-uv@v10.2.0 with: python-version: "3.13" - name: Python format and lint check