Skip to content

Commit 7fd2852

Browse files
authored
Add support for dependabot.yaml file also (#243)
* Add support for dependabot.yaml file also Today check-dependabot only supports dependabot.yml files. Dependabot supports .dependabot.yaml files also. * Updated test for check-dependabot file match
1 parent 0bb1f41 commit 7fd2852

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
description: 'Validate Dependabot Config (v2) against the schema provided by SchemaStore'
5454
entry: check-jsonschema --builtin-schema vendor.dependabot
5555
language: python
56-
files: ^\.github/dependabot.yml$
56+
files: ^\.github/dependabot.(yml|yaml)$
5757
types: [yaml]
5858

5959
- id: check-github-actions

tests/acceptance/test_hook_file_matches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def get_hook_config(hookid):
6464
),
6565
},
6666
"check-dependabot": {
67-
"good": (".github/dependabot.yml",),
68-
"bad": (".github/dependabot.yaml", ".dependabot.yml"),
67+
"good": (".github/dependabot.yml", ".github/dependabot.yaml"),
68+
"bad": (".dependabot.yaml", ".dependabot.yml"),
6969
},
7070
"check-github-actions": {
7171
"good": (

0 commit comments

Comments
 (0)