diff options
Diffstat (limited to 'blog/src')
| -rw-r--r-- | blog/src/blog/gemtext.py | 2 | ||||
| -rw-r--r-- | blog/src/blog/html.py | 2 |
2 files changed, 2 insertions, 2 deletions
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): |
