Skip to content

Commit

Permalink
[MNT] Dependabot validation workflow (#903)
Browse files Browse the repository at this point in the history
* set up dependency updater

* sweep update and pr open token

* pr open comment

* fixes (i hope_

* dependabot validator

* break

* comment poster

* remove workflow

* add to pre-commit

* wrong exclude, oops
  • Loading branch information
MatthewMiddlehurst authored Nov 16, 2023
1 parent 5b77865 commit 63e2676
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
19 changes: 10 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
version: 2
updates:
# update GitHub actions versions
- package-ecosystem: github-actions
directory: /
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
interval: "weekly"
time: "01:00"
commit-message:
prefix: "[MNT]"
prefix: "[MNT] "
labels:
- "maintenance"
- "dependencies"
- "no changelog"
groups:
github-actions:
patterns:
- "*"

# update Python dependencies
- package-ecosystem: pip
directory: /
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: weekly
interval: "weekly"
time: "01:00"
commit-message:
prefix: "[MNT]"
prefix: "[MNT] "
labels:
- "maintenance"
- "dependencies"
- "full pytest actions"
- "no changelog"
groups:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr_opened.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: PR Opened

on:
pull_request_target:
types: [opened]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr_precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ jobs:
run: build_tools/fail_on_missing_init_files.sh
shell: bash

- uses: marocchino/validate-dependabot@v2

- if: ${{ failure() && github.event_name == 'pull_request' && github.event.pull_request.draft == false }}
uses: pre-commit-ci/lite-action@v1.0.1
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repos:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: fix-byte-order-marker
exclude: "^docs/examples"
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: [ "--remove" ]
- id: name-tests-test
Expand Down

0 comments on commit 63e2676

Please sign in to comment.