diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b88a67a..4ff63e4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,8 @@ updates: directory: "/" schedule: interval: weekly + + - package-ecosystem: "pre-commit" + directory: "/" + schedule: + interval: weekly diff --git a/.github/workflows/pre-commit-detect-outdated.yml b/.github/workflows/pre-commit-detect-outdated.yml deleted file mode 100644 index 2b15990..0000000 --- a/.github/workflows/pre-commit-detect-outdated.yml +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright (c) 2024 Sebastian Pipping -# Licensed under the MIT license - -name: Detect outdated pre-commit hooks - -on: - schedule: - - cron: "0 18 * * 5" # Every Friday 6pm - workflow_dispatch: - -# NOTE: This will drop all permissions from GITHUB_TOKEN except metadata read, -# and then (re)add the ones listed below: -permissions: - contents: write - pull-requests: write - -jobs: - pre_commit_detect_outdated: - name: Detect outdated pre-commit hooks - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - - name: Set up Python 3.14 - uses: actions/setup-python@v6 - with: - python-version: 3.14 - - - name: Install pre-commit - run: |- - pip install \ - --disable-pip-version-check \ - --no-warn-script-location \ - --user \ - pre-commit - echo "PATH=${HOME}/.local/bin:${PATH}" >> "${GITHUB_ENV}" - - - name: Check for outdated hooks - run: |- - pre-commit autoupdate - git diff -- .pre-commit-config.yaml - - - name: Create pull request from changes (if any) - id: create-pull-request - uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 - with: - author: "pre-commit " - base: master - body: |- - For your consideration. - - :warning: Please **CLOSE AND RE-OPEN** this pull request so that [further workflow runs get triggered](https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs) for this pull request. - branch: precommit-autoupdate - commit-message: "pre-commit: Autoupdate" - delete-branch: true - draft: true - labels: enhancement - title: "pre-commit: Autoupdate" - - - name: Log pull request URL - if: "${{ steps.create-pull-request.outputs.pull-request-url }}" - run: | - echo "Pull request URL is: ${{ steps.create-pull-request.outputs.pull-request-url }}" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 872e19f..a819fa2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v6.0.0 + rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0 hooks: - id: check-merge-conflict - id: check-yaml @@ -8,11 +8,11 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 26.3.1 + rev: c6755bb741b6481d6b3d3bb563c83fa060db96c9 # frozen: 26.3.1 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 7.3.0 + rev: c48217e1fc006c2dddd14df54e83b67da15de5cd # frozen: 7.3.0 hooks: - id: flake8