Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos discovered by codespell #168

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ dependency-group: github-actions

- Fixes #61
- Config now includes `resolved_filemap` property
- resolved filemap exapands all globs
- resolved filemap expands all globs
- Config now includes `files_to_modify` property
- files to modify resolves inclusions and exclutions
- Improved Config.add_files property
Expand Down Expand Up @@ -826,7 +826,7 @@ dependency-group: github-actions

- Fixed issue with formatting. [da7544f](https://github.com/callowayproject/bump-my-version/commit/da7544f18780d5f289381d33a87b331c3eaf4d6b)

There is an underlying edge case where the deriving previous environment variables with multple ways of formatting version numbers will fail.
There is an underlying edge case where the deriving previous environment variables with multiple ways of formatting version numbers will fail.
### New

- Add test to reproduce issue #14. [d78ff46](https://github.com/callowayproject/bump-my-version/commit/d78ff46d65ce75b7651e5697eef59dbcb71c935e)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ parse = """(?x)
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
- # dash seperator for pre-release section
- # dash separator for pre-release section
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>0|[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
Expand Down
6 changes: 3 additions & 3 deletions bumpversion/autocast.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def noneify(s: str) -> None:

def listify(s: str) -> list:
"""
Convert a string representation of a list into list of homogenous basic types.
Convert a string representation of a list into list of homogeneous basic types.

Type of elements in list is determined via first element. Successive elements are
cast to that type.
Expand All @@ -38,10 +38,10 @@ def listify(s: str) -> list:

Raises:
ValueError: If string does not represent a list.
TypeError: If string does not represent a list of homogenous basic types.
TypeError: If string does not represent a list of homogeneous basic types.

Returns:
List of homogenous basic types.
List of homogeneous basic types.
"""
if "\n" in s:
str_list = s.strip().split("\n")
Expand Down
4 changes: 2 additions & 2 deletions bumpversion/versioning/conventions.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ def pep440_version_spec() -> VersionSpec:
(?P<minor>0|[1-9]\d*)\.
(?P<patch>0|[1-9]\d*)
(?:
- # dash seperator for pre-release section
- # dash separator for pre-release section
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>0|[1-9]\d*) # pre-release version number
)? # pre-release section is optional
(?:
\+ # plus seperator for build metadata section
\+ # plus separator for build metadata section
(?P<buildmetadata>
[0-9a-zA-Z-]+
(?:\.[0-9a-zA-Z-]+)*
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_show(tmp_path: Path, fixtures_path: Path, runner):


def test_show_and_increment(tmp_path: Path, fixtures_path: Path, runner):
"""The show subcommand should incrment the version and display it."""
"""The show subcommand should increment the version and display it."""
# Arrange
config_path = tmp_path / "pyproject.toml"
toml_path = fixtures_path / "basic_cfg.toml"
Expand Down
Loading