From 1c776783f9c37870cec31998288795b383a49723 Mon Sep 17 00:00:00 2001 From: Yuya Asano <64895419+sukeya@users.noreply.github.com> Date: Mon, 13 Oct 2025 14:52:57 +0900 Subject: [PATCH 1/2] Upgrade Python and checkout. --- .github/workflows/pre_commit.yml | 12 ++++-------- .gitmodules | 3 +++ platanus | 1 + 3 files changed, 8 insertions(+), 8 deletions(-) create mode 160000 platanus diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index d203cee..aa92e2f 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -1,9 +1,6 @@ name: Lint -on: - push: - branches: - - main +on: pull_request jobs: pre_commit: @@ -11,12 +8,11 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: - python-version: '3.12' - architecture: 'x64' + python-version: '3.13' - name: Set up pre-commit run: | python -m pip install --upgrade pip diff --git a/.gitmodules b/.gitmodules index e69de29..24582cd 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "platanus"] + path = platanus + url = https://github.com/sukeya/platanus.git diff --git a/platanus b/platanus new file mode 160000 index 0000000..a939249 --- /dev/null +++ b/platanus @@ -0,0 +1 @@ +Subproject commit a9392495db854a17d0acdc1130504b209021352c From c88bb66c4248f341c52f8c422398946dc5aa2bf6 Mon Sep 17 00:00:00 2001 From: Yuya Asano <64895419+sukeya@users.noreply.github.com> Date: Mon, 13 Oct 2025 14:54:52 +0900 Subject: [PATCH 2/2] Run pre-commit when I commit and push. --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 367d5fe..c3a3919 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +default_stages: [pre-commit, pre-push] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.2.0