Skip to content

Commit

Permalink
Merge pull request #7 from rmartin16/pre-commit-workflow
Browse files Browse the repository at this point in the history
Add GitHub workflow to keep `pre-commit` hooks up-to-date
  • Loading branch information
freakboy3742 authored Apr 11, 2023
2 parents fa82cec + 61d02f5 commit 1155e3b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pre-commit-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Update pre-commit

on:
schedule:
- cron: "0 20 * * SUN" # Sunday @ 2000 UTC
workflow_dispatch:

jobs:
pre-commit-update:
name: Update pre-commit
uses: beeware/.github/.github/workflows/pre-commit-update.yml@main
secrets: inherit
with:
pre-commit-source: "pre-commit"
create-changenote: false
16 changes: 5 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-toml
- id: check-yaml
Expand All @@ -10,27 +10,21 @@ repos:
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
# For split_on_trailing_comma. Should be in the release after 5.10.1
rev: 12cc5fbd67eebf92eb2213b03c07b138ae1fb448
rev: 5.12.0
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/myint/docformatter
rev: v1.5.0
hooks:
- id: docformatter
args: [--in-place]
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 23.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-eradicate==1.4.0]

0 comments on commit 1155e3b

Please sign in to comment.