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

Method __init__

commitizen/commands/commit.py:51–58  ·  view source on GitHub ↗
(self, config: BaseConfig, arguments: CommitArgs)

Source from the content-addressed store, hash-verified

49 """Show prompt for the user to create a guided commit."""
50
51 def __init__(self, config: BaseConfig, arguments: CommitArgs) -> None:
52 if not git.is_git_project():
53 raise NotAGitProjectError()
54
55 self.config: BaseConfig = config
56 self.cz = factory.committer_factory(self.config)
57 self.arguments = arguments
58 self.backup_file_path = get_backup_file_path()
59
60 def _get_commit_encoding(self) -> str:
61 """Return the encoding of the files that hold the commit message.

Callers

nothing calls this directly

Calls 2

NotAGitProjectErrorClass · 0.90
get_backup_file_pathFunction · 0.90

Tested by

no test coverage detected