File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ import os.path
88import tarfile
99import tempfile
1010
11+ import cfgv
1112from pre_commit import constants
1213from pre_commit .all_languages import languages
14+ from pre_commit .clientlib import CONFIG_HOOK_DICT
1315from pre_commit .store import _make_local_repo
1416
1517
@@ -39,6 +41,11 @@ def main() -> int:
3941 'local_repo_version' : constants .LOCAL_REPO_VERSION ,
4042 }
4143
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+
4249 info_json = os .path .join (args .dest , 'info.json' )
4350 with open (info_json , 'w' ) as f :
4451 json .dump (data , f )
You can’t perform that action at this time.
0 commit comments