Skip to content

Commit 2c9c8a3

Browse files
committed
style: fix typo within codebase
1 parent 71e509c commit 2c9c8a3

File tree

10 files changed

+24
-24
lines changed

10 files changed

+24
-24
lines changed

commitizen/bump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def update_version_in_files(
138138
So for example, your tag could look like `v1.0.0` while your version in
139139
the package like `1.0.0`.
140140
"""
141-
# TODO: sepearte check step and write step
141+
# TODO: separate check step and write step
142142
for location in files:
143143
filepath, *regexes = location.split(":", maxsplit=1)
144144
regex = regexes[0] if regexes else None

commitizen/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
{
115115
"name": "--bump-message",
116116
"help": (
117-
"template used to create the release commmit, "
117+
"template used to create the release commit, "
118118
"useful when working with CI"
119119
),
120120
},

commitizen/commands/bump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __call__(self): # noqa: C901
154154
self.config.set_key("version", new_version.public)
155155
c = git.commit(message, args=self._get_commit_args())
156156
if c.err:
157-
out.error('git.commit errror: "{}"'.format(c.err.strip()))
157+
out.error('git.commit error: "{}"'.format(c.err.strip()))
158158
raise SystemExit(COMMIT_FAILED)
159159
c = git.tag(new_tag_version)
160160
if c.err:

commitizen/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def load_global_conf() -> Optional[IniConfig]:
1616
if not global_cfg.exists():
1717
return None
1818

19-
# global conf doesnt make sense with commitizen bump
19+
# global conf doesn't make sense with commitizen bump
2020
# so I'm deprecating it and won't test it
2121
message = (
2222
"Global conf will be deprecated in next major version. "

commitizen/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def commiter_factory(config: BaseConfig) -> BaseCommitizen:
1111
_cz = registry[name](config)
1212
except KeyError:
1313
msg_error = (
14-
"The commiter has not been found in the system.\n\n"
14+
"The committer has not been found in the system.\n\n"
1515
f"Try running 'pip install {name}'\n"
1616
)
1717
out.error(msg_error)

commitizen/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_commits(
6363
delimiter: str = "----------commit-delimiter----------",
6464
args: str = "",
6565
) -> List[GitCommit]:
66-
"""Get the commits betweeen start and end."""
66+
"""Get the commits between start and end."""
6767
git_log_cmd = f"git log --pretty={log_format}{delimiter} {args}"
6868

6969
if start:

tests/CHANGELOG_FOR_TEST.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
- update given files with new version
3030
- **config**: new set key, used to set version to cfg
3131
- support for pyproject.toml
32-
- first semantic version bump implementaiton
32+
- first semantic version bump implementation
3333

3434
### fix
3535

@@ -92,11 +92,11 @@
9292

9393
### refactor
9494

95-
- **conventionalCommit**: moved fitlers to questions instead of message
95+
- **conventionalCommit**: moved filters to questions instead of message
9696

9797
### fix
9898

99-
- **manifest**: inluded missing files
99+
- **manifest**: included missing files
100100

101101
## v0.9.5 (2018-08-24)
102102

@@ -114,7 +114,7 @@
114114

115115
### feat
116116

117-
- **commiter**: conventional commit is a bit more intelligent now
117+
- **committer**: conventional commit is a bit more intelligent now
118118

119119
## v0.9.2 (2017-11-11)
120120

tests/commands/test_bump_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_bump_on_git_with_hooks_no_verify_disabled(mocker, capsys):
7777
cli.main()
7878

7979
_, err = capsys.readouterr()
80-
assert 'git.commit errror: "0.1.0"' in err
80+
assert 'git.commit error: "0.1.0"' in err
8181

8282

8383
@pytest.mark.usefixtures("tmp_commitizen_project")

tests/test_changelog.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
},
126126
{
127127
"rev": "3127e05077288a5e2b62893345590bf1096141b7",
128-
"title": "feat: first semantic version bump implementaiton",
128+
"title": "feat: first semantic version bump implementation",
129129
"body": "",
130130
},
131131
{
@@ -255,12 +255,12 @@
255255
},
256256
{
257257
"rev": "72472efb80f08ee3fd844660afa012c8cb256e4b",
258-
"title": "refactor(conventionalCommit): moved fitlers to questions instead of message",
258+
"title": "refactor(conventionalCommit): moved filters to questions instead of message",
259259
"body": "",
260260
},
261261
{
262262
"rev": "b5561ce0ab3b56bb87712c8f90bcf37cf2474f1b",
263-
"title": "fix(manifest): inluded missing files",
263+
"title": "fix(manifest): included missing files",
264264
"body": "",
265265
},
266266
{
@@ -290,7 +290,7 @@
290290
},
291291
{
292292
"rev": "4368f3c3cbfd4a1ced339212230d854bc5bab496",
293-
"title": "feat(commiter): conventional commit is a bit more intelligent now",
293+
"title": "feat(committer): conventional commit is a bit more intelligent now",
294294
"body": "",
295295
},
296296
{
@@ -472,7 +472,7 @@ def test_generate_tree_from_commits(gitcommits, tags):
472472
{
473473
"scope": None,
474474
"breaking": None,
475-
"message": "first semantic version bump implementaiton",
475+
"message": "first semantic version bump implementation",
476476
},
477477
],
478478
"fix": [
@@ -591,14 +591,14 @@ def test_generate_tree_from_commits(gitcommits, tags):
591591
{
592592
"scope": "conventionalCommit",
593593
"breaking": None,
594-
"message": "moved fitlers to questions instead of message",
594+
"message": "moved filters to questions instead of message",
595595
}
596596
],
597597
"fix": [
598598
{
599599
"scope": "manifest",
600600
"breaking": None,
601-
"message": "inluded missing files",
601+
"message": "included missing files",
602602
}
603603
],
604604
},
@@ -629,7 +629,7 @@ def test_generate_tree_from_commits(gitcommits, tags):
629629
"changes": {
630630
"feat": [
631631
{
632-
"scope": "commiter",
632+
"scope": "committer",
633633
"breaking": None,
634634
"message": "conventional commit is a bit more intelligent now",
635635
}

tests/test_cz_customize.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def config():
1010
toml_str = r"""
1111
[tool.commitizen.customize]
1212
message_template = "{{change_type}}:{% if show_message %} {{message}}{% endif %}"
13-
example = "feature: this feature eanable customize through config file"
13+
example = "feature: this feature enable customize through config file"
1414
schema = "<type>: <body>"
1515
bump_pattern = "^(break|new|fix|hotfix)"
1616
bump_map = {"break" = "MAJOR", "new" = "MINOR", "fix" = "PATCH", "hotfix" = "PATCH"}
@@ -88,16 +88,16 @@ def test_answer(config):
8888
cz = CustomizeCommitsCz(config)
8989
answers = {
9090
"change_type": "feature",
91-
"message": "this feature eanable customize through config file",
91+
"message": "this feature enaable customize through config file",
9292
"show_message": True,
9393
}
9494
message = cz.message(answers)
95-
assert message == "feature: this feature eanable customize through config file"
95+
assert message == "feature: this feature enaable customize through config file"
9696

9797
cz = CustomizeCommitsCz(config)
9898
answers = {
9999
"change_type": "feature",
100-
"message": "this feature eanable customize through config file",
100+
"message": "this feature enaable customize through config file",
101101
"show_message": False,
102102
}
103103
message = cz.message(answers)
@@ -106,7 +106,7 @@ def test_answer(config):
106106

107107
def test_example(config):
108108
cz = CustomizeCommitsCz(config)
109-
assert "feature: this feature eanable customize through config file" in cz.example()
109+
assert "feature: this feature enable customize through config file" in cz.example()
110110

111111

112112
def test_schema(config):

0 commit comments

Comments
 (0)