Skip to content

Commit 69bb02e

Browse files
Updated pre-commit schemas to support the unsupported and unsupported_script aliases introduced in v4.4.0 (SchemaStore#5519)
* Updated pre-commit schemas to support the `unsupported` and `unsupported_script` aliases introduced in v4.4.0 For more information see pre-commit/pre-commit#3577 https://github.com/pre-commit/pre-commit/releases/tag/v4.4.0 * Apply prettier formatting
1 parent 1c3cd8a commit 69bb02e

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

src/schemas/json/pre-commit-hooks.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"swift",
2727
"pygrep",
2828
"script",
29-
"system"
29+
"system",
30+
"unsupported",
31+
"unsupported_script"
3032
]
3133
},
3234
{

src/test/pre-commit-config/pre-commit-config-test.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@
6666
"id": "display-python-version",
6767
"language": "python",
6868
"name": "Prints python version"
69+
},
70+
{
71+
"entry": "some-system-hook",
72+
"id": "system-hook",
73+
"language": "unsupported",
74+
"name": "System hook"
75+
},
76+
{
77+
"entry": "some-script-hook",
78+
"id": "script-hook",
79+
"language": "unsupported_script",
80+
"name": "Script hook"
6981
}
7082
],
7183
"repo": "local"

src/test/pre-commit-hooks/pre-commit-hooks.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,17 @@
2525
"id": "bar",
2626
"language": "rust",
2727
"name": "bar"
28+
},
29+
{
30+
"entry": "baz_hook",
31+
"id": "baz",
32+
"language": "unsupported",
33+
"name": "baz"
34+
},
35+
{
36+
"entry": "qux_hook",
37+
"id": "qux",
38+
"language": "unsupported_script",
39+
"name": "qux"
2840
}
2941
]

0 commit comments

Comments
 (0)