Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0005ac2

Browse files
committed
docs: fix typo
1 parent 05a4cf0 commit 0005ac2

13 files changed

+34
-34
lines changed

CHANGELOG.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181

182182
### Fix
183183

184-
- **bump.py**: `CHANGELOG.md` gets git added and commited correctly
184+
- **bump.py**: `CHANGELOG.md` gets git added and committed correctly
185185

186186
## v2.33.0 (2022-09-15)
187187

@@ -420,8 +420,8 @@
420420

421421
### Fix
422422

423-
- **bump**: raise non zero error code when there's no elegible commit to bump
424-
- **bump**: raise non zero error code when there's no elegible commit to bump
423+
- **bump**: raise non zero error code when there's no eligible commit to bump
424+
- **bump**: raise non zero error code when there's no eligible commit to bump
425425

426426
## v2.20.3 (2021-12-20)
427427

@@ -471,7 +471,7 @@
471471

472472
### Fix
473473

474-
- **commit**: correct the stage checker before commiting
474+
- **commit**: correct the stage checker before committing
475475

476476
## v2.18.0 (2021-08-13)
477477

@@ -546,7 +546,7 @@
546546

547547
### Fix
548548

549-
- **bump**: replace all occurances that match regex
549+
- **bump**: replace all occurrences that match regex
550550
- **wip**: add test for current breaking change
551551

552552
## v2.17.1 (2021-04-08)
@@ -792,7 +792,7 @@
792792
### BREAKING CHANGE
793793

794794
- setup.cfg, .cz and .cz.cfg are no longer supported
795-
- Use "cz verion" instead
795+
- Use "cz version" instead
796796
- "cz --debug" will no longer work
797797

798798
## v1.25.0 (2020-07-26)
@@ -961,7 +961,7 @@
961961

962962
- **commands/changelog**: make changelog_file an option in config
963963
- **commands/changelog**: exit when there is no commit exists
964-
- **commands/changlog**: add --start-rev argument to `cz changelog`
964+
- **commands/changelog**: add --start-rev argument to `cz changelog`
965965
- **changelog**: generate changelog based on git log
966966
- **commands/changelog**: generate changelog_tree from all past commits
967967
- **cz/conventinal_commits**: add changelog_map, changelog_pattern and implement process_commit
@@ -1062,7 +1062,7 @@
10621062
- **cmd**: reimplement how cmd is run
10631063
- **git**: Use GitCommit, GitTag object to store commit and git information
10641064
- **git**: make arguments other then start and end in get_commit keyword arguments
1065-
- **git**: Change get_commits into returning commits instead of lines of messsages
1065+
- **git**: Change get_commits into returning commits instead of lines of messages
10661066

10671067
### Feat
10681068

@@ -1162,7 +1162,7 @@
11621162

11631163
- **config**: handle empty config file
11641164
- **config**: fix load global_conf even if it doesn't exist
1165-
- **config/ini_config**: replase outdated _parse_ini_settings with _parse_settings
1165+
- **config/ini_config**: replace outdated _parse_ini_settings with _parse_settings
11661166

11671167
## v1.10.1 (2019-12-10)
11681168

@@ -1207,16 +1207,16 @@
12071207
### Refactor
12081208

12091209
- **config**: remove has_pyproject which is no longer used
1210-
- **cz/customize**: make jinja2 a custom requirement. if not installed use string.Tempalte instead
1210+
- **cz/customize**: make jinja2 a custom requirement. if not installed use string.Template instead
12111211
- **cz/utils**: rename filters as utils
12121212
- **cli**: add back --version and remove subcommand required constraint
12131213

12141214
### Fix
12151215

1216-
- commit dry-run doesnt require staging to be clean
1216+
- commit dry-run doesn't require staging to be clean
12171217
- correct typo to spell "convention"
12181218
- removing folder in windows throwing a PermissionError
1219-
- **scripts**: add back the delelte poetry prefix
1219+
- **scripts**: add back the delete poetry prefix
12201220
- **test_cli**: testing the version command
12211221

12221222
## v1.8.0 (2019-11-12)
@@ -1327,7 +1327,7 @@
13271327
- update given files with new version
13281328
- **config**: new set key, used to set version to cfg
13291329
- support for pyproject.toml
1330-
- first semantic version bump implementaiton
1330+
- first semantic version bump implementation
13311331

13321332
### Fix
13331333

@@ -1386,11 +1386,11 @@
13861386

13871387
### Refactor
13881388

1389-
- **conventionalCommit**: moved fitlers to questions instead of message
1389+
- **conventionalCommit**: moved filters to questions instead of message
13901390

13911391
### Fix
13921392

1393-
- **manifest**: inluded missing files
1393+
- **manifest**: included missing files
13941394

13951395
## v0.9.5 (2018-08-24)
13961396

@@ -1408,7 +1408,7 @@
14081408

14091409
### Feat
14101410

1411-
- **commiter**: conventional commit is a bit more intelligent now
1411+
- **committer**: conventional commit is a bit more intelligent now
14121412

14131413
## v0.9.2 (2017-11-11)
14141414

commitizen/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"name": "--write-message-to-file",
6969
"type": Path,
7070
"metavar": "FILE_PATH",
71-
"help": "write message to file before commiting (can be combined with --dry-run)",
71+
"help": "write message to file before committing (can be combined with --dry-run)",
7272
},
7373
{
7474
"name": ["-s", "--signoff"],

commitizen/cz/conventional_commits/conventional_commits.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def schema(self) -> str:
192192

193193
def schema_pattern(self) -> str:
194194
PATTERN = (
195-
r"(?s)" # To explictly make . match new line
195+
r"(?s)" # To explicitly make . match new line
196196
r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)" # type
197197
r"(\(\S+\))?!?:" # scope
198198
r"( [^\n\r]+)" # subject

commitizen/cz/utils.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from commitizen.cz import exceptions
22

33

4-
def required_validator(ans, msg=None):
5-
if not ans:
4+
def required_validator(answer, msg=None):
5+
if not answer:
66
raise exceptions.AnswerRequiredError(msg)
7-
return ans
7+
return answer
88

99

10-
def multiple_line_breaker(ans, sep="|"):
11-
return "\n".join(line.strip() for line in ans.split(sep) if line)
10+
def multiple_line_breaker(answer, sep="|"):
11+
return "\n".join(line.strip() for line in answer.split(sep) if line)

commitizen/git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def get_eol_style() -> EOLTypes:
216216
# We enumerate the EOL types of the response of
217217
# `git config core.eol`, and map it to our enumration EOLTypes.
218218
#
219-
# It is just like the varient of the "match" syntax.
219+
# It is just like the variant of the "match" syntax.
220220
map = {
221221
"lf": EOLTypes.LF,
222222
"crlf": EOLTypes.CRLF,

docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919

2020
Commitizen is release management tool designed for teams.
2121

22-
Commitizen assumes your team uses a standard way of commiting rules
22+
Commitizen assumes your team uses a standard way of committing rules
2323
and from that foundation, it can bump your project's version, create
2424
the changelog, and update files.
2525

2626
By default, commitizen uses [conventional commits][conventional_commits], but you
2727
can build your own set of rules, and publish them.
2828

29-
Using a standarized set of rules to write commits, makes commits easier to read, and enforces writing
29+
Using a standardized set of rules to write commits, makes commits easier to read, and enforces writing
3030
descriptive commits.
3131

3232
### Features

docs/bump.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ will be sent to the stdout, and any other message generated by the bump will be
184184
sent to stderr.
185185
186186
If `--changelog` is not used with this command, it is still smart enough to
187-
understand that the user wants to create a changelog. It is recommened to be
187+
understand that the user wants to create a changelog. It is recommended to be
188188
explicit and use `--changelog` (or the setting `update_changelog_on_bump`).
189189
190190
This command is useful to "transport" the newly created changelog.
@@ -484,7 +484,7 @@ release. During execution of the script, some environment variables are availabl
484484
| `CZ_POST_CURRENT_VERSION` | Current version, after the bump |
485485
| `CZ_POST_CURRENT_TAG_VERSION` | Current version tag, after the bump |
486486
| `CZ_POST_MESSAGE` | Commit message of the bump |
487-
| `CZ_POST_INCREMENT` | Whether this wass a `MAJOR`, `MINOR` or `PATH` release |
487+
| `CZ_POST_INCREMENT` | Whether this was a `MAJOR`, `MINOR` or `PATH` release |
488488
| `CZ_POST_CHANGELOG_FILE_NAME` | Path to the changelog file, if available |
489489
490490
```toml

docs/contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you're a first-time contributor, you can check the issues with [good first is
2020
5. Check out a new branch and add your modification.
2121
6. Add test cases for all your changes.
2222
(We use [CodeCov](https://codecov.io/) to ensure our test coverage does not drop.)
23-
7. Use [commitizen](https://github.com/commitizen-tools/commitizen) to do git commit. We follow [conventional commmits][conventional-commmits]
23+
7. Use [commitizen](https://github.com/commitizen-tools/commitizen) to do git commit. We follow [conventional commits][conventional-commits]
2424
8. Run `./scripts/format` and `./scripts/test` to ensure you follow the coding style and the tests pass.
2525
9. Optionally, update the `README.md`.
2626
9. **Do not** update the `CHANGELOG.md`, it will be automatically created after merging to `master`.

docs/customization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ commitizen:
149149
150150
| Parameter | Type | Default | Description |
151151
| ------------------- | ------ | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
152-
| `questions` | `Questions` | `None` | Questions regarding the commit message. Detailed below. The type `Questions` is an alias to `Iterable[MutableMapping[str, Any]]` which is definied in `commitizen.defaults`. It expects a list of dictionaries. |
152+
| `questions` | `Questions` | `None` | Questions regarding the commit message. Detailed below. The type `Questions` is an alias to `Iterable[MutableMapping[str, Any]]` which is defined in `commitizen.defaults`. It expects a list of dictionaries. |
153153
| `message_template` | `str` | `None` | The template for generating message from the given answers. `message_template` should either follow [Jinja2][jinja2] formatting specification, and all the variables in this template should be defined in `name` in `questions` |
154154
| `example` | `str` | `None` | (OPTIONAL) Provide an example to help understand the style. Used by `cz example`. |
155155
| `schema` | `str` | `None` | (OPTIONAL) Show the schema used. Used by `cz schema`. |

docs/exit_codes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ These exit codes can be found in `commitizen/exceptions.py::ExitCode`.
3333
| GitCommandError | 23 | Unexpected failure while calling a git command |
3434
| InvalidManualVersion | 24 | Manually provided version is invalid |
3535
| InitFailedError | 25 | Failed to initialize pre-commit |
36-
| VersionProviderUnknown | 26 | `version_provider` setting is set to an unknown version provider indentifier |
36+
| VersionProviderUnknown | 26 | `version_provider` setting is set to an unknown version provider identifier |

docs/tutorials/auto_prepare_commit_message.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use a [prepare-commit-msg Git hook](prepare-commit-msg-docs):
1212
> This hook is invoked by git-commit right after preparing the
1313
> default log message, and before the editor is started.
1414
15-
To automatically perform arbitrary cleanup steps after a succesful commit you can use a
15+
To automatically perform arbitrary cleanup steps after a successful commit you can use a
1616
[post-commit Git hook][post-commit-docs]:
1717

1818
> This hook is invoked by git-commit. It takes no parameters, and is invoked after a

tests/commands/test_check_command.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"docs(check): fix pre-commit setup",
4343
"bump: version 1.16.1 → 1.16.2",
4444
"Merge pull request #135 from Lee-W/fix-pre-commit-hook\n\nFix pre commit hook",
45-
"docs(check): enforce cz check only whem committing",
45+
"docs(check): enforce cz check only when committing",
4646
(
4747
'Revert "fix(pre-commit): set pre-commit check stage to commit-msg"\n\n'
4848
"This reverts commit afc70133e4a81344928561fbf3bb20738dfc8a0b."

tests/commands/test_init_command.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def default_choice(request, mocker: MockFixture):
155155

156156
def check_cz_config(config: str):
157157
"""
158-
Cehck the content of commitizen config is as expected
158+
Check the content of commitizen config is as expected
159159
160160
Args:
161161
config: The config path

0 commit comments

Comments
 (0)