diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d5d5a76a..6065b52b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.4 + rev: v0.8.0 hooks: - id: ruff name: ruff linter @@ -23,7 +23,7 @@ repos: args: [--exit-non-zero-on-fix] - repo: https://github.com/pappasam/toml-sort - rev: v0.24.1 + rev: v0.24.2 hooks: - id: toml-sort-fix files: pyproject.toml diff --git a/doc/conf.py b/doc/conf.py index 1905f31fc..a0879db7e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -292,7 +292,7 @@ def linkcode_resolve(domain: str, info: dict[str, str]) -> Optional[str]: # retrieve start/stop lines source, start_line = inspect.getsourcelines(pyobject) - lines = "L%d-L%d" % (start_line, start_line + len(source) - 1) + lines = f"L{start_line}-L{start_line + len(source) - 1}" # create URL if "dev" in release: