We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0856608 commit 1532f28Copy full SHA for 1532f28
1 file changed
build/language-info
@@ -8,8 +8,10 @@ import os.path
8
import tarfile
9
import tempfile
10
11
+import cfgv
12
from pre_commit import constants
13
from pre_commit.all_languages import languages
14
+from pre_commit.clientlib import CONFIG_HOOK_DICT
15
from pre_commit.store import _make_local_repo
16
17
@@ -39,6 +41,11 @@ def main() -> int:
39
41
'local_repo_version': constants.LOCAL_REPO_VERSION,
40
42
}
43
44
+ # if this fails then remove the lines after it
45
+ cfgv.validate({'id': '1', 'language': 'system'}, CONFIG_HOOK_DICT)
46
+ data['languages']['system'] = data['languages']['unsupported']
47
+ data['languages']['script'] = data['languages']['unsupported_script']
48
+
49
info_json = os.path.join(args.dest, 'info.json')
50
with open(info_json, 'w') as f:
51
json.dump(data, f)
0 commit comments