MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / smart_open

Function smart_open

commitizen/git.py:326–328  ·  view source on GitHub ↗

Open a file with the EOL style determined from Git.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

324
325
326def smart_open(*args, **kwargs): # type: ignore[no-untyped-def,unused-ignore] # noqa: ANN201
327 """Open a file with the EOL style determined from Git."""
328 return open(*args, newline=EOLType.for_open(), **kwargs)
329
330
331def _get_log_as_str_list(start: str | None, end: str, args: Sequence[str]) -> list[str]:

Callers 8

update_version_in_filesFunction · 0.90
__call__Method · 0.90
_write_changelogMethod · 0.90
__call__Method · 0.90
set_keyMethod · 0.90
set_keyMethod · 0.90

Calls 1

for_openMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…