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 | |
| parent | f6be97c47a9099afc7048db90dd03a2db36306ce (diff) | |
Finish ruff cleanup
Related to #376
Diffstat (limited to 'blog')
| -rw-r--r-- | blog/pyproject.toml | 12 | ||||
| -rw-r--r-- | blog/src/blog/gemtext.py | 2 | ||||
| -rw-r--r-- | blog/src/blog/html.py | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/blog/pyproject.toml b/blog/pyproject.toml index b1f9c314..6f4e9a35 100644 --- a/blog/pyproject.toml +++ b/blog/pyproject.toml @@ -36,10 +36,10 @@ build-backend = "hatchling.build" [tool.ruff.lint] select = ["ALL"] ignore = [ - "E741", # Ambiguous variable name (single letter variable) - "ANN", # Missing type annotations - "D1", # Missing docstrings - "B011", "PT015", "S101", # I am wrong in liking asserts, but I do - "COM812", # Trailing comma missing, incompatible with ruff format - "D400", "D415", "D212", "D205" # I like doctests without docstrings + "E741", # Ambiguous variable name (single letter variable) + "ANN", # Missing type annotations + "D1", # Missing docstrings + "B011", "PT015", "S101", # I am wrong in liking asserts, but I do + "COM812", # Trailing comma missing, incompatible with ruff format + "D400", "D415", "D212", "D205", "D402", # I like doctests without docstrings ] 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): |
