MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / _create_project_files

Function _create_project_files

tests/test_project_info.py:12–18  ·  view source on GitHub ↗
(files: dict[str, str | None])

Source from the content-addressed store, hash-verified

10
11
12def _create_project_files(files: dict[str, str | None]) -> None:
13 for file_path, content in files.items():
14 path = Path(file_path)
15 if content is None:
16 path.touch()
17 else:
18 path.write_text(content, encoding="utf-8")
19
20
21@pytest.mark.parametrize(

Calls

no outgoing calls

Tested by

no test coverage detected