Skip to content

Commit 763da16

Browse files
committed
docs(conf) Fix UP031 (printf-string-formatting)
https://docs.astral.sh/ruff/rules/printf-string-formatting/ docs/conf.py:194:16: UP031 Use format specifiers instead of percent format | 192 | lineno = None 193 | 194 | linespec = "#L%d-L%d" % (lineno, lineno + len(source) - 1) if lineno else "" | ^^^^^^^^^^ UP031 195 | 196 | fn = relpath(fn, start=pathlib.Path(vcspull.__file__).parent) | = help: Replace with format specifiers
1 parent 1428190 commit 763da16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def linkcode_resolve(domain: str, info: t.Dict[str, str]) -> t.Union[None, str]:
191191
except Exception:
192192
lineno = None
193193

194-
linespec = "#L%d-L%d" % (lineno, lineno + len(source) - 1) if lineno else ""
194+
linespec = f"#L{lineno}-L{lineno + len(source) - 1}" if lineno else ""
195195

196196
fn = relpath(fn, start=pathlib.Path(tmuxp.__file__).parent)
197197

0 commit comments

Comments
 (0)