diff options
| author | alex <alex@pdp7.net> | 2025-03-16 14:00:32 +0100 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2025-03-16 14:01:27 +0100 |
| commit | a3e56ad801343697cdc2dda139193f240497973e (patch) | |
| tree | 112231a0d444d106b4bebfecbf4ec722694917a6 /blog/src | |
| parent | f6be97c47a9099afc7048db90dd03a2db36306ce (diff) | |
Finish ruff cleanup
Related to #376
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): |
