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

Function _nuget_config_no_sources

pre_commit/languages/dotnet.py:40–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39@contextlib.contextmanager
40def _nuget_config_no_sources() -> Generator[str]:
41 with tempfile.TemporaryDirectory() as tmpdir:
42 nuget_config = os.path.join(tmpdir, 'nuget.config')
43 with open(nuget_config, 'w') as f:
44 f.write(
45 '<?xml version="1.0" encoding="utf-8"?>'
46 '<configuration>'
47 ' <packageSources>'
48 ' <clear />'
49 ' </packageSources>'
50 '</configuration>',
51 )
52 yield nuget_config
53
54
55def install_environment(

Callers 1

install_environmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected