From 7252c2ecae8f743fd07c3f7b0b2dcbeb1d3f58fe Mon Sep 17 00:00:00 2001 From: d33bs Date: Tue, 30 Sep 2025 15:00:18 -0600 Subject: [PATCH 1/4] enable automated dependabot updates --- .github/workflows/dependabot.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1 @@ + From d4ab5b63b8ff5d6934f41bead1d7afa0782ba084 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Tue, 30 Sep 2025 21:07:32 +0000 Subject: [PATCH 2/4] [pre-commit.ci lite] apply automatic fixes --- .github/workflows/dependabot.yml | 1 - .pre-commit-config.yaml | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 8b13789..e69de29 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -1 +0,0 @@ - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b255e05..492a9ac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: check-added-large-files - id: detect-private-key - repo: https://github.com/python-poetry/poetry - rev: "2.1.4" + rev: "2.2.1" hooks: - id: poetry-check - repo: https://github.com/tox-dev/pyproject-fmt @@ -54,12 +54,12 @@ repos: hooks: - id: actionlint - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.12" + rev: "v0.13.2" hooks: - id: ruff-format - id: ruff-check - repo: https://github.com/software-gardening/almanack - rev: v0.1.8 + rev: v0.1.9 hooks: - id: almanack-check - repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update From ec24f8affd8d5a85fc1583a134d8a063e922f9d1 Mon Sep 17 00:00:00 2001 From: d33bs Date: Tue, 30 Sep 2025 15:34:29 -0600 Subject: [PATCH 3/4] Update dependabot.yml --- .github/workflows/dependabot.yml | 66 ++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index e69de29..be55376 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,66 @@ +name: dependabot jobs + +on: + pull_request: + types: [opened, reopened, synchronize] + +permissions: + pull-requests: write + contents: write + +jobs: + pre-commit: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-24.04 + steps: + # checks out the repo + - uses: actions/checkout@v5 + with: + # fetch tags for versioning details + fetch-depth: 0 + # Check out the branch that Dependabot’s PR is coming from + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + persist-credentials: true + - name: Fetch tags + run: git fetch --all --tags + - name: Python setup + uses: actions/setup-python@v6 + with: + python-version: "3.11" + - name: Setup for poetry + run: | + python -m pip install poetry + poetry self add "poetry-dynamic-versioning[plugin]" + - name: Install environment + run: poetry install --no-interaction --no-ansi + # run pre-commit + - uses: pre-commit/action@v3.0.1 + id: pre_commit + continue-on-error: true + - name: Check for changes + if: ${{ steps.pre_commit.outcome == 'failure' }} + id: check_changes + run: | + if [[ -n "$(git status --porcelain)" ]]; then + echo "changes_detected=true" >> "$GITHUB_ENV" + else + echo "changes_detected=false" >> "$GITHUB_ENV" + fi + - name: Commit and push changes + if: ${{ env.changes_detected == 'true' && + steps.pre_commit.outcome == 'failure' }} + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email \ + "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "chore: auto-apply pre-commit fixes" + git push + # raise error if there were no changes and pre-commit failed + - name: Errors detected + if: ${{ env.changes_detected == 'false' && + steps.pre_commit.outcome == 'failure' }} + run: | + echo 'Pre-commit failed and was unable to make changes' + exit 1 \ No newline at end of file From d89ecc5a392d8d054cd612a7da0666ce00e1905f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Tue, 30 Sep 2025 21:38:17 +0000 Subject: [PATCH 4/4] [pre-commit.ci lite] apply automatic fixes --- .github/workflows/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index be55376..b44ad4a 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -63,4 +63,4 @@ jobs: steps.pre_commit.outcome == 'failure' }} run: | echo 'Pre-commit failed and was unable to make changes' - exit 1 \ No newline at end of file + exit 1