Skip to content

Commit

Permalink
ci: add pre-commit autoupdate GH action, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Nov 14, 2023
1 parent 6573b77 commit b8bab7b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ updates:
schedule:
interval: "weekly"
commit-message:
prefix: "chore(deps)"
prefix: "chore"
include: "scope"

- package-ecosystem: "github-actions"
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/pre-commit-au.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pre-commit auto-update

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

jobs:
upgrade:
uses: browniebroke/github-actions/.github/workflows/pre-commit-autoupdate.yml@v1
secrets:
gh_pat: ${{ secrets.GITHUB_TOKEN }}
with:
# Inputs listed with their default (all optional)
config_path: ".pre-commit-config.yaml" # path is relative to repository root
python_version: "3.11"
branch_name: "update/pre-commit-hooks"
pull_request_title: "chore(deps): upgrade pre-commit dependencies"
commit_message: "chore(deps): upgrade pre-commit dependencies"
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ repos:
- id: debug-statements

- repo: https://github.com/crate-ci/typos
rev: v1.16.20
rev: v1.16.23
hooks:
- id: typos
args: []

- repo: https://github.com/psf/black
rev: 23.10.0
rev: 23.11.0
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.0
rev: v0.1.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.332
rev: v1.1.335
hooks:
- id: pyright
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black
build
pre-commit
pyright
pytest
sphinx
wheel
black==23.11.0
build==1.0.3
pre-commit==3.5.0
pyright==1.1.335
pytest==7.4.3
sphinx==7.2.6
wheel==0.41.3

0 comments on commit b8bab7b

Please sign in to comment.