From e94f6439beb076184756c4cffb1935060ddf0e52 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:51:29 +0000 Subject: [PATCH 1/6] [pre-commit.ci] pre-commit suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v3.17.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v3.17.0...v3.19.1) - [github.com/google/yapf: v0.40.2 → v0.43.0](https://github.com/google/yapf/compare/v0.40.2...v0.43.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.8.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.8.6) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.14.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.14.1) - [github.com/executablebooks/mdformat: 0.7.17 → 0.7.21](https://github.com/executablebooks/mdformat/compare/0.7.17...0.7.21) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 54713bd8..2aa06b47 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: args: [-d, '{extends: default, rules: {line-length: disable, document-start: disable, truthy: {level: error}, braces: {max-spaces-inside: 1}}}'] - repo: https://github.com/asottile/pyupgrade - rev: v3.17.0 + rev: v3.19.1 hooks: - id: pyupgrade name: Upgrade Python syntax @@ -54,7 +54,7 @@ repos: ] - repo: https://github.com/google/yapf - rev: v0.40.2 + rev: v0.43.0 hooks: - id: yapf name: Format code @@ -74,14 +74,14 @@ repos: additional_dependencies: [Flake8-pyproject] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.8.6 hooks: - id: ruff name: Ruff formatting args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.14.1 hooks: - id: mypy name: Check types @@ -89,7 +89,7 @@ repos: exclude: "^test/|^examples/|^benchmark/" - repo: https://github.com/executablebooks/mdformat - rev: 0.7.17 + rev: 0.7.21 hooks: - id: mdformat name: Format Markdown From d7db8b675e0ae49646b58d687861b3c7750a7a31 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:53:08 +0000 Subject: [PATCH 2/6] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- CHANGELOG.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c249fe29..3d44013c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). -## \[Unreleased\] +## [Unreleased] ### Added @@ -31,7 +31,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Removed CUDA synchronizations from `nn.LinearEmbeddingEncoder` ([#432](https://github.com/pyg-team/pytorch-frame/pull/432)) - Removed CUDA synchronizations from N/A imputation logic in `nn.StypeEncoder` ([#433](https://github.com/pyg-team/pytorch-frame/pull/433), [#434](https://github.com/pyg-team/pytorch-frame/pull/434)) -## \[0.2.3\] - 2024-07-08 +## [0.2.3] - 2024-07-08 ### Added @@ -43,7 +43,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Updated `ExcelFormer` implementation and related scripts ([#391](https://github.com/pyg-team/pytorch-frame/pull/391)) -## \[0.2.2\] - 2024-03-04 +## [0.2.2] - 2024-03-04 ### Added @@ -69,7 +69,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed the split of `DataFrameTextBenchmark` ([#358](https://github.com/pyg-team/pytorch-frame/pull/358)) - Fixed empty `MultiNestedTensor` col indexing ([#355](https://github.com/pyg-team/pytorch-frame/pull/355)) -## \[0.2.1\] - 2024-01-16 +## [0.2.1] - 2024-01-16 ### Added @@ -91,7 +91,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed `TimestampEncoder` not applying `CyclicEncoder` to cyclic features ([#311](https://github.com/pyg-team/pytorch-frame/pull/311)) - Fixed NaN masking in `multicateogrical` stype ([#307](https://github.com/pyg-team/pytorch-frame/pull/307)) -## \[0.2.0\] - 2023-12-15 +## [0.2.0] - 2023-12-15 ### Added @@ -143,7 +143,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - No manual passing of `in_channels` to `LinearEmbeddingEncoder` for `stype.text_embedded` ([#222](https://github.com/pyg-team/pytorch-frame/pull/222)) -## \[0.1.0\] - 2023-10-23 +## [0.1.0] - 2023-10-23 ### Added From 5e263877847486f602a8da8ff23e3562d3375a3a Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Tue, 7 Jan 2025 09:51:45 +0000 Subject: [PATCH 3/6] update --- .github/workflows/dependabot-auto-merge.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 106d3699..d94b91b8 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -12,7 +12,8 @@ permissions: jobs: auto-merge: runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} + # Only run on dependabot or pre-commit-ci PRs + if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]' }} steps: - name: Enable auto-merge run: gh pr merge --auto --squash "$PR_URL" From 7fa53920d41c5b159a1c90c10530e0cad3df8409 Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Tue, 7 Jan 2025 09:56:30 +0000 Subject: [PATCH 4/6] update --- .github/workflows/dependabot-auto-merge.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index d94b91b8..857791ae 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -12,14 +12,13 @@ permissions: jobs: auto-merge: runs-on: ubuntu-latest - # Only run on dependabot or pre-commit-ci PRs - if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]' }} + steps: + - name: Auto-approve + uses: hmarr/auto-approve-action@v4 + - name: Enable auto-merge run: gh pr merge --auto --squash "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - - name: Auto-approve - uses: hmarr/auto-approve-action@v4 From ecd6ff99ea58840ba1c5b91aa1240a4d9db84d3a Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Tue, 7 Jan 2025 10:04:21 +0000 Subject: [PATCH 5/6] update --- .github/workflows/dependabot-auto-merge.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 857791ae..a73e97b4 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -14,11 +14,15 @@ jobs: runs-on: ubuntu-latest steps: - - name: Auto-approve - uses: hmarr/auto-approve-action@v4 + - name: check + run: | + echo ${{ github.event.pull_request.user.login }} - - name: Enable auto-merge - run: gh pr merge --auto --squash "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + # - name: Auto-approve + # uses: hmarr/auto-approve-action@v4 + + # - name: Enable auto-merge + # run: gh pr merge --auto --squash "$PR_URL" + # env: + # PR_URL: ${{github.event.pull_request.html_url}} + # GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} From 6e8a7da03ad3a6951b903dcaa4a51524871d8d70 Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Tue, 7 Jan 2025 10:05:42 +0000 Subject: [PATCH 6/6] update --- .github/workflows/dependabot-auto-merge.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index a73e97b4..ac3dafac 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -12,17 +12,13 @@ permissions: jobs: auto-merge: runs-on: ubuntu-latest - + if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' }} steps: - - name: check - run: | - echo ${{ github.event.pull_request.user.login }} - - # - name: Auto-approve - # uses: hmarr/auto-approve-action@v4 + - name: Auto-approve + uses: hmarr/auto-approve-action@v4 - # - name: Enable auto-merge - # run: gh pr merge --auto --squash "$PR_URL" - # env: - # PR_URL: ${{github.event.pull_request.html_url}} - # GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Enable auto-merge + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}