diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a53c4a11..d922b18f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ files: "momepy\/|docs\/" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.9" + rev: "v0.8.6" hooks: - id: ruff - id: ruff-format diff --git a/docs/conf.py b/docs/conf.py index 70c975cb..c7cad1ba 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -298,7 +298,7 @@ def find_source(): if domain != "py" or not info["module"]: return None try: - filename = "momepy/%s#L%d-L%d" % find_source() + filename = "momepy/%s#L%d-L%d" % find_source() # noqa: UP031 except Exception: filename = info["module"].replace(".", "/") + ".py" tag = "main" if "+" in release else ("v" + release)