MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _translate_language

Function _translate_language

pre_commit/clientlib.py:194–198  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

192
193
194def _translate_language(name: str) -> str:
195 return {
196 'system': 'unsupported',
197 'script': 'unsupported_script',
198 }.get(name, name)
199
200
201class LanguageMigration(NamedTuple): # remove

Callers 2

checkMethod · 0.85
apply_defaultMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected