From a3e56ad801343697cdc2dda139193f240497973e Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 16 Mar 2025 14:00:32 +0100 Subject: Finish ruff cleanup Related to #376 --- blog/src/blog/gemtext.py | 2 +- blog/src/blog/html.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'blog/src') diff --git a/blog/src/blog/gemtext.py b/blog/src/blog/gemtext.py index 43cffd2f..f79be9ee 100644 --- a/blog/src/blog/gemtext.py +++ b/blog/src/blog/gemtext.py @@ -125,7 +125,7 @@ class Link: assert Link.is_link(line) parts = line.split(None, 2) self.url = parts[1] - self.text = parts[2] if len(parts) > 2 else None + self.text = parts[2] if len(parts) > 2 else None # noqa: PLR2004, > 2 "magic constant" @staticmethod def is_link(line: str): diff --git a/blog/src/blog/html.py b/blog/src/blog/html.py index c51237ce..19fe6ea1 100644 --- a/blog/src/blog/html.py +++ b/blog/src/blog/html.py @@ -86,7 +86,7 @@ def html_template(*content, page_title=None, path, full): ) -def gemini_to_html(parsed): +def gemini_to_html(parsed): # noqa: C901, PLR0912, PLR0915 i = 0 result = [] while i < len(parsed): -- cgit v1.2.3