Skip to content

Commit

Permalink
Satisfy linters
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Aug 21, 2024
1 parent 4978b8a commit 190f483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/solidation/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ def to_markdown(self) -> str:
if untriaged_issues:
s += f"##### Untriaged issues of the last {dayscovered} days\n"
for i in sorted(untriaged_issues, key=lambda x: x.created_at):
s += f"- [{sanitize_md(i.title)}]({i.html_url}) [{i.repository.full_name}]\n"
s += f"- [{sanitize_md(i.title)}]({i.html_url}) " + \
f"[{i.repository.full_name}]\n"

s += (
f"##### Max {self.config.num_oldest_prs} oldest, open, non-draft"
Expand Down
3 changes: 2 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@


def test_sanitize_md() -> None:
assert sanitize_md(r"[gh-actions](deps): Fix \n") == r"\[gh-actions\](deps): Fix \\n"
assert sanitize_md(r"[gh-actions](deps): Fix \n") \
== r"\[gh-actions\](deps): Fix \\n"

0 comments on commit 190f483

Please sign in to comment.