Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add pre-commit autoupdate GH action, update deps #5

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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