Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 26e9eef

Browse files
authored
Merge pull request #64 from rmartin16/pre-commit-workflow
Add GitHub workflow to keep `pre-commit` hooks up-to-date
2 parents 15c4eff + db15db4 commit 26e9eef

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
env:
9+
min_python_version: "3.9"
10+
811
jobs:
912
pre-commit:
1013
runs-on: ubuntu-latest
@@ -61,6 +64,7 @@ jobs:
6164
- towncrier
6265
- package
6366
runs-on: ubuntu-latest
67+
continue-on-error: ${{ matrix.experimental }}
6468
strategy:
6569
matrix:
6670
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Update pre-commit
2+
3+
on:
4+
schedule:
5+
- cron: "0 20 * * SUN" # Sunday @ 2000 UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
pre-commit-update:
10+
name: Update pre-commit
11+
uses: beeware/.github/.github/workflows/pre-commit-update.yml@main
12+
secrets: inherit
13+
with:
14+
pre-commit-source: "pre-commit"

.pre-commit-config.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
3+
rev: v4.4.0
44
hooks:
55
- id: check-toml
66
- id: check-yaml
@@ -9,27 +9,21 @@ repos:
99
- id: end-of-file-fixer
1010
- id: trailing-whitespace
1111
- repo: https://github.com/PyCQA/isort
12-
rev: 5.10.1
12+
rev: 5.12.0
1313
hooks:
1414
- id: isort
1515
additional_dependencies: [toml]
1616
- repo: https://github.com/asottile/pyupgrade
17-
rev: v3.2.0
17+
rev: v3.3.1
1818
hooks:
1919
- id: pyupgrade
2020
args: [--py37-plus]
21-
- repo: https://github.com/myint/docformatter
22-
rev: v1.5.0
23-
hooks:
24-
- id: docformatter
25-
args: [--in-place]
2621
- repo: https://github.com/psf/black
27-
rev: 22.10.0
22+
rev: 23.1.0
2823
hooks:
2924
- id: black
3025
language_version: python3
3126
- repo: https://github.com/PyCQA/flake8
32-
rev: 5.0.4
27+
rev: 6.0.0
3328
hooks:
3429
- id: flake8
35-
additional_dependencies: [flake8-eradicate==1.4.0]

changes/64.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A GitHub workflow now runs every Sunday at 2000 UTC to check for updates to ``pre-commit`` hooks and commits them to a new PR.

0 commit comments

Comments
 (0)