Skip to content

Commit

Permalink
chore: update deps and add update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GabDug committed Jan 30, 2024
1 parent 8513303 commit 9730999
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 229 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sync_python_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Update Python dependencies with PDM
# Other dependencies updates are managed by renovatebot

on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update dependencies with PDM
uses: pdm-project/update-deps-action@main
with:
# The personal access token, default: ${{ github.token }}
token: ${{ github.token }}
# The commit message"
commit-message: "chore(deps): Update pdm.lock"
# The PR title
pr-title: "chore(deps): Update Python dependencies with PDM"
# The update strategy, can be 'reuse', 'eager' or 'all'
update-strategy: all
# Whether to install PDM plugins before update
install-plugins: "true"
# Whether commit message contains signed-off-by
sign-off-commit: "true"
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ repos:
- id: fix-byte-order-marker

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

- rev: v0.1.9
- rev: v0.1.15
repo: https://github.com/astral-sh/ruff-pre-commit
hooks:
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pdm 2.11.1
python 3.11.7
pdm 2.12.2
python 3.12.1
Loading

0 comments on commit 9730999

Please sign in to comment.