Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/ruff-0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
janw authored Feb 24, 2024
2 parents c3cad16 + 5db4620 commit 5f6e78f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/pre-commit-autoupdate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Pre-commit Autoupdate

on:
schedule:
- cron: "0 0 * * 0" # every sunday at midnight
workflow_dispatch:

jobs:
autoupdate:
runs-on: ubuntu-latest
environment: release
steps:
- name: Check out
uses: actions/checkout@v3

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: gpg-import
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true

- name: Install pre-commit
run: pipx install pre-commit

- name: Run pre-commit autoupdate
run: pre-commit autoupdate

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: |
.pre-commit-config.yaml
commit-message: "bump(pre-commit): pre-commit autoupdate"
title: "bump(pre-commit): pre-commit autoupdate"
body: ""
token: ${{ secrets.BOT_PERSONAL_ACCESS_TOKEN }}
push-to-fork: janw-bot/podcast-archiver
committer: ${{ steps.gpg-import.outputs.name }} <${{ steps.gpg-import.outputs.email }}>
branch: pre-commit-autoupdate
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ default_stages:
- pre-commit
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.11'
rev: 'v0.2.2'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
rev: "v4.5.0"
hooks:
- id: trailing-whitespace
exclude_types: [svg]
Expand All @@ -23,14 +23,14 @@ repos:
- id: check-ast

- repo: https://github.com/commitizen-tools/commitizen
rev: 'v3.13.0'
rev: 'v3.15.0'
hooks:
- id: commitizen
- id: commitizen-branch
stages: [pre-push]

- repo: https://github.com/python-poetry/poetry
rev: '1.7.1'
rev: '1.7.0'
hooks:
- id: poetry-check

Expand Down

0 comments on commit 5f6e78f

Please sign in to comment.