@@ -30,7 +30,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
3030 "description" : "Validate Azure Pipelines config against the schema provided "
3131 "by Microsoft" ,
3232 "add_args" : ["--data-transform" , "azure-pipelines" ],
33- "files" : r"^(\.)?azure-pipelines.(yml|yaml)$" ,
33+ "files" : r"^(\.)?azure-pipelines\ .(yml|yaml)$" ,
3434 "types" : "yaml" ,
3535 },
3636 },
@@ -72,7 +72,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
7272 "url" : "https://json.schemastore.org/dependabot-2.0.json" ,
7373 "hook_config" : {
7474 "name" : "Validate Dependabot Config (v2)" ,
75- "files" : r"^\.github/dependabot.(yml|yaml)$" ,
75+ "files" : r"^\.github/dependabot\ .(yml|yaml)$" ,
7676 "types" : "yaml" ,
7777 },
7878 },
@@ -88,7 +88,10 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
8888 "url" : "https://json.schemastore.org/github-action" ,
8989 "hook_config" : {
9090 "name" : "Validate GitHub Actions" ,
91- "files" : ["action.(yml|yaml)" , r"\.github/actions/(.+/)?action.(yml|yaml)" ],
91+ "files" : [
92+ r"action\.(yml|yaml)" ,
93+ r"\.github/actions/(.+/)?action\.(yml|yaml)" ,
94+ ],
9295 "types" : "yaml" ,
9396 },
9497 },
@@ -106,7 +109,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
106109 "hook_config" : {
107110 "name" : "Validate GitLab CI config" ,
108111 "add_args" : ["--data-transform" , "gitlab-ci" ],
109- "files" : r"^.*\.gitlab-ci.yml$" ,
112+ "files" : r"^.*\.gitlab-ci\ .yml$" ,
110113 "types" : "yaml" ,
111114 },
112115 },
@@ -121,7 +124,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
121124 "name" : "Validate ReadTheDocs Config" ,
122125 "description" : "Validate ReadTheDocs config against the schema "
123126 "provided by ReadTheDocs" ,
124- "files" : r"^\.readthedocs.(yml|yaml)$" ,
127+ "files" : r"^\.readthedocs\ .(yml|yaml)$" ,
125128 "types" : "yaml" ,
126129 },
127130 },
@@ -142,7 +145,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
142145 "url" : "https://json.schemastore.org/travis" ,
143146 "hook_config" : {
144147 "name" : "Validate Travis Config" ,
145- "files" : r"^\.travis.(yml|yaml)$" ,
148+ "files" : r"^\.travis\ .(yml|yaml)$" ,
146149 "types" : "yaml" ,
147150 },
148151 },
0 commit comments