Skip to content

Commit 5dcbcc7

Browse files
authored
Merge pull request #106 from pre-commit-ci/validate-alias-type
ensure alias is checked as a string
2 parents da8ca78 + d212f5f commit 5dcbcc7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pre_commit_ci_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def check(self, dct: dict[str, Any]) -> None:
4848
'Hook', 'id',
4949

5050
cfgv.Required('id', cfgv.check_string),
51+
cfgv.OptionalNoDefault('alias', cfgv.check_string),
5152
)
5253

5354
CONFIG_REPO_DICT = cfgv.Map(

0 commit comments

Comments
 (0)