MCPcopy Create free account

hub / github.com/commitizen-tools/commitizen / functions

Functions1,032 in github.com/commitizen-tools/commitizen

↓ 150 callersMethodrun_cli
Execute commitizen CLI with given args.
tests/utils.py:103
↓ 143 callersMethodcreate_file_and_commit
Create a file and commit it.
tests/utils.py:47
↓ 40 callersMethodcreate_tag
Create a git tag.
tests/utils.py:92
↓ 40 callersMethodget
(self, document: Mapping[str, str])
commitizen/providers/base_provider.py:83
↓ 24 callersFunctionget_provider
Get the version provider as defined in the configuration :raises VersionProviderUnknown: if the provider named by `version_provider` is not
commitizen/providers/__init__.py:37
↓ 22 callersMethodget_version
(self)
commitizen/providers/scm_provider.py:17
↓ 17 callersFunctionincremental_build
Takes the original lines and updates with new_content. The metadata governs how to remove the old unreleased section and where to place the n
commitizen/changelog.py:246
↓ 14 callersFunctionget_version_scheme
Get the version scheme as defined in the configuration or from an overridden `name`. :raises VersionSchemeUnknown: if the version sche
commitizen/version_schemes.py:397
↓ 14 callersMethodset_version
(self, version: str)
commitizen/providers/uv_provider.py:24
↓ 13 callersMethodupdate
(self, data: Settings)
commitizen/config/base_config.py:49
↓ 11 callersMethodbump
Based on the given increment a proper semver will be generated. For now the rules and versioning scheme is based on python's PEP 0440
commitizen/version_schemes.py:232
↓ 10 callersMethod_get_encoding
(self)
commitizen/providers/base_provider.py:54
↓ 10 callersFunction_git_tag
(name: str)
tests/test_tags.py:7
↓ 10 callersMethodmock_cmd
Mock cmd.run command.
tests/utils.py:120
↓ 10 callersMethodunsafe_ask
(self)
tests/commands/test_init_command.py:27
↓ 9 callersMethodfind_tag_for
Find the first matching tag for a given version.
commitizen/tags.py:228
↓ 9 callersMethodget_highest_by_messages
Compute the highest increment across many commit messages. An empty iterable yields ``NONE`` so callers can preserve the existing "no
commitizen/version_increment.py:132
↓ 9 callersMethodget_metadata
(self, filepath: str)
commitizen/changelog_formats/base.py:38
↓ 9 callersFunctionsmart_open
Open a file with the EOL style determined from Git.
commitizen/git.py:326
↓ 8 callersFunctionget_changelog_format
Get a format from its name :raises FormatUnknown: if a non-empty name is provided but cannot be found in the known formats
commitizen/changelog_formats/__init__.py:64
↓ 7 callersMethodextract_version
Extract a version from the tag as defined in tag formats. Raises `InvalidVersion` if the tag does not match any format.
commitizen/tags.py:149
↓ 7 callersMethodinfo
Information about the standardized commit message.
commitizen/cz/base.py:157
↓ 7 callersMethodis_version_tag
True if a given tag is a legit version tag. if `warn` is `True`, it will print a warning message if the tag is not a version tag.
commitizen/tags.py:123
↓ 7 callersFunctionsample_file
(tmp_path: Path, data_dir: Path)
tests/test_bump_update_version_in_files.py:21
↓ 7 callersMethodscheme
(self)
commitizen/version_schemes.py:157
↓ 5 callersMethod_ask_tag_format
(self, latest_tag: str)
commitizen/commands/init.py:268
↓ 5 callersFunction_build_fake_git_commits
(commit_msgs: list[str])
tests/commands/test_check_command.py:67
↓ 5 callersMethod_write_text
Write `content` to `path` with the configured encoding. The file is opened with `smart_open`, so the line ending follows `git config
commitizen/providers/base_provider.py:57
↓ 5 callersMethodfrom_str
(cls, value: str)
commitizen/exceptions.py:45
↓ 5 callersFunctionline
Wrapper in case I want to do something different later.
commitizen/out.py:17
↓ 5 callersMethodparse_version_from_title
Extract the version from a title line if any
commitizen/changelog_formats/base.py:99
↓ 5 callersFunctiontmp_commitizen_project_initial
( tmp_git_project: Path, util: UtilFixture, monkeypatch: pytest.MonkeyPatch )
tests/conftest.py:99
↓ 4 callersFunctioncheck_cz_config
Check the content of commitizen config is as expected
tests/commands/test_init_command.py:156
↓ 4 callersFunctioncheck_pre_commit_config
Check the content of pre-commit config is as expected
tests/commands/test_init_command.py:169
↓ 4 callersFunctiondiscover_plugins
Discover commitizen plugins on the path Args: path (Path, optional): If provided, 'path' should be either None or a list of paths to look
commitizen/cz/__init__.py:16
↓ 4 callersMethodfilter_commits_before_bump
Select commits before calculating a version increment. This operation-specific hook delegates to `filter_commits` so custom rules can
commitizen/cz/base.py:95
↓ 4 callersMethodfrom_settings
Extract tag rules from settings
commitizen/tags.py:263
↓ 4 callersFunctionget_backup_file_path
()
commitizen/cz/utils.py:26
↓ 4 callersMethodget_version_tags
Filter in version tags and warn on unexpected tags
commitizen/tags.py:143
↓ 4 callersMethodinfo
(self)
commitizen/cz/customize/customize.py:101
↓ 4 callersMethodmessage
(self, answers: ConventionalCommitsAnswers)
commitizen/cz/conventional_commits/conventional_commits.py:157
↓ 4 callersMethodnormalize_tag
The tag and the software version might be different. That's why this function exists. Example: | tag | version (PEP
commitizen/tags.py:198
↓ 4 callersMethodparse_title_level
Get the title level/type of a line if any
commitizen/changelog_formats/base.py:107
↓ 4 callersMethodsearch_version
Search the first or last version tag occurrence in text. It searches for complete versions only (aka `major`, `minor` and `patch`)
commitizen/tags.py:174
↓ 4 callersMethodtick
Advance time by 1 second.
tests/utils.py:115
↓ 3 callersFunction_create_project_files
(files: dict[str, str | None])
tests/test_project_info.py:12
↓ 3 callersMethod_get_commit_encoding
Return the encoding of the files that hold the commit message. `commit_encoding` falls back to `encoding` when it is not set.
commitizen/commands/commit.py:60
↓ 3 callersFunction_guess_changelog_format
Try guessing the file format from the filename. Algorithm is basic, extension-based, and won't work for extension-less file names like `
commitizen/changelog_formats/__init__.py:83
↓ 3 callersFunction_init_hook_answers
Stub the interactive init prompts and select hook installation.
tests/commands/test_init_command.py:261
↓ 3 callersFunction_is_underlined_title
(first: str, second: str)
commitizen/changelog_formats/restructuredtext.py:83
↓ 3 callersFunction_parse_subject
(text: str)
commitizen/cz/conventional_commits/conventional_commits.py:22
↓ 3 callersMethodcreate_branch
Create a new branch.
tests/utils.py:66
↓ 3 callersMethodfilter_commits
Select commits shared by bump and changelog operations. Custom rules can override this method when both operations should use the sam
commitizen/cz/base.py:81
↓ 3 callersMethodfilter_commits_before_changelog
Select commits before generating a changelog. This operation-specific hook delegates to `filter_commits` so custom rules can share fi
commitizen/cz/base.py:111
↓ 3 callersMethodfrom_message
Compute the highest increment contributed by one commit message. Commitizen historically evaluates each line of the full commit message
commitizen/version_increment.py:105
↓ 3 callersMethodinclude_in_changelog
Check if a tag should be included in the changelog
commitizen/tags.py:166
↓ 3 callersMethodis_ignored_tag
True if a given tag can be ignored
commitizen/tags.py:138
↓ 3 callersMethodmanual_edit
Open the message in the git editor and return the edited message. The temporary file uses `commit_encoding` (or `encoding`) instead of the
commitizen/commands/commit.py:141
↓ 3 callersMethodmessage
(self, answers: Mapping[str, Any])
commitizen/cz/customize/customize.py:86
↓ 3 callersMethodquestions
(self)
commitizen/cz/customize/customize.py:83
↓ 3 callersMethodset_key
(self, key: str, value: object)
commitizen/config/json_config.py:42
↓ 3 callersMethodswitch_branch
Switch to given branch.
tests/utils.py:72
↓ 2 callersMethod_compile_pattern
Normalize a bump-pattern input into a compiled regular expression.
commitizen/version_increment.py:66
↓ 2 callersMethod_construct_name_choices_from_registry
Construct questionary choices of cz names from registry.
commitizen/commands/init.py:217
↓ 2 callersFunction_create_config_from_path
(path: Path)
commitizen/config/__init__.py:30
↓ 2 callersMethod_extract_version
(self, match: re.Match[str])
commitizen/tags.py:273
↓ 2 callersMethod_format_regex
Format a tag pattern into a regex pattern. If star is `True`, the `*` character will be considered as a wildcard.
commitizen/tags.py:107
↓ 2 callersMethod_is_initial_tag
Check if reading the whole git tree up to HEAD is needed.
commitizen/commands/bump.py:131
↓ 2 callersFunction_is_overlined_title
(first: str, second: str, third: str)
commitizen/changelog_formats/restructuredtext.py:74
↓ 2 callersFunction_parse_scope
(text: str)
commitizen/cz/conventional_commits/conventional_commits.py:18
↓ 2 callersFunction_popen
( cmd: str | Sequence[str], *, shell: bool, env: Mapping[str, str] | None = None, )
commitizen/cmd.py:39
↓ 2 callersFunction_try_get_workspace
(document: TOMLDocument)
commitizen/providers/cargo_provider.py:102
↓ 2 callersMethod_version_tag_error
Format the error message for an invalid version tag
commitizen/tags.py:119
↓ 2 callersMethodcontains_commitizen_section
(self)
commitizen/config/json_config.py:28
↓ 2 callersFunctioncreate_config
(*, data: bytes | str | None = None, path: Path)
commitizen/config/factory.py:15
↓ 2 callersMethoddecode
(self, encoding="utf-8", errors="strict")
tests/test_cmd.py:51
↓ 2 callersMethodexample
(self)
commitizen/cz/customize/customize.py:92
↓ 2 callersMethodfor_open
(cls)
commitizen/git.py:25
↓ 2 callersMethodfrom_rev_and_commit
Create a GitCommit instance from a formatted commit string. This method parses a multi-line string containing commit information in the follo
commitizen/git.py:82
↓ 2 callersMethodfrom_value
Convert external increment input into a known increment. This lenient path is used for inputs such as CLI arguments where an unknown
commitizen/version_increment.py:50
↓ 2 callersMethodget_latest_full_release
(self, filepath: str)
commitizen/changelog_formats/base.py:75
↓ 2 callersMethodinit_empty_config_content
(self)
commitizen/config/json_config.py:36
↓ 2 callersMethodinit_empty_config_content
(self)
commitizen/config/toml_config.py:32
↓ 2 callersFunctionmain
()
commitizen/cli.py:674
↓ 2 callersMethodmerge_branch
Merge given branch into current branch.
tests/utils.py:78
↓ 2 callersFunctionnormalize_argparse_choice_quotes
(text: str)
tests/test_cli.py:25
↓ 2 callersMethodpatch_env
Patch environment variables to sync with FreezeGun time.
tests/utils.py:109
↓ 2 callersMethodquestions
(self)
commitizen/cz/conventional_commits/conventional_commits.py:50
↓ 2 callersMethodschema
Schema definition of the commit message.
commitizen/cz/base.py:149
↓ 2 callersMethodschema_pattern
(self)
commitizen/cz/customize/customize.py:95
↓ 2 callersMethodset
(self, document: dict[str, Any], version: str)
commitizen/providers/base_provider.py:86
↓ 2 callersFunctionstrip_local_version
(version: str)
commitizen/cz/utils.py:22
↓ 1 callersFunction_add_entry
(test_str: str, args: list)
tests/test_bump_create_commit_message.py:118
↓ 1 callersMethod_ask_config_path
(self)
commitizen/commands/init.py:199
↓ 1 callersMethod_ask_hook_installer
Choose ``pre-commit`` or ``prek`` when installing Git hooks. Detection already accepts either tool, but install used to hard-code ``p
commitizen/commands/init.py:176
↓ 1 callersMethod_ask_hook_types
Ask which pre-commit hook types to install. Skip the question when neither ``pre-commit`` nor ``prek`` is installed, so users who do
commitizen/commands/init.py:157
↓ 1 callersMethod_ask_major_version_zero
Ask for setting: major_version_zero
commitizen/commands/init.py:305
↓ 1 callersMethod_ask_name
(self)
commitizen/commands/init.py:208
↓ 1 callersMethod_ask_tag
(self)
commitizen/commands/init.py:240
↓ 1 callersMethod_ask_update_changelog_on_bump
Ask for setting: update_changelog_on_bump
commitizen/commands/init.py:316
next →1–100 of 1,032, ranked by callers