Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks [dependabot skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 36e167e commit 74d6b39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions github_changelog_md/changelog/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def process_unreleased(
release_link = (
"tree/HEAD"
if not self.options["next_release"]
else f'releases/tag/{self.options["next_release"]}'
else f"releases/tag/{self.options['next_release']}"
)
f.write(
f"## [{heading}]({self.repo_data.html_url}/{release_link})"
Expand Down Expand Up @@ -528,8 +528,7 @@ def print_issues(
# deleted, or it was converted to a discussion. We can't get any
# info on them.
f.write(
f"- {escaped_title} "
f"([#{issue.number}]({issue.html_url}))\n"
f"- {escaped_title} ([#{issue.number}]({issue.html_url}))\n"
)
f.write("\n")

Expand Down
6 changes: 3 additions & 3 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ def test_get_index_of_tuple_with_none_value(
) -> None:
"""Test get_index_of_tuple when searching for None value."""
index = get_index_of_tuple(sample_section_headings, 1, None)
assert (
index == 0
), "Expected index of 0 for the first occurrence of None value"
assert index == 0, (
"Expected index of 0 for the first occurrence of None value"
)

def test_get_index_of_tuple_empty_list(self) -> None:
"""Test get_index_of_tuple with an empty list."""
Expand Down

0 comments on commit 74d6b39

Please sign in to comment.