From 9a115f5d50386f7a7c1b6b7506940f1cfcc1916e Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 19 Jul 2026 07:06:15 -0500 Subject: [PATCH] Switch to ruff:ignore --- pyproject.toml | 12 ++++++------ sphinxconfig.py | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 06269f0..cbf9dc5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,12 +20,12 @@ extend-select = [ ] extend-ignore = [ "C90", # McCabe complexity - "E221", # multiple spaces before operator - "E226", # missing whitespace around arithmetic operator - "E241", # multiple spaces after comma - "E242", # tab after comma - "E402", # module level import not at the top of file - "N818", # error suffix in exception names + "multiple-spaces-before-operator", + "missing-whitespace-around-arithmetic-operator", + "multiple-spaces-after-comma", + "tab-after-comma", + "module-import-not-at-top-of-file", + "error-suffix-on-exception-name", ] [tool.ruff.lint.flake8-quotes] diff --git a/sphinxconfig.py b/sphinxconfig.py index dcfdaff..15ca991 100644 --- a/sphinxconfig.py +++ b/sphinxconfig.py @@ -45,13 +45,13 @@ def linkcode_resolve( for part in fullname.split("."): try: obj = getattr(obj, part) - except Exception: # noqa: BLE001 + except Exception: # ruff:ignore[blind-except] return None try: modpath = os.path.dirname(os.path.dirname(inspect.getsourcefile(topmod))) filepath = os.path.relpath(inspect.getsourcefile(obj), modpath) - except Exception: # noqa: BLE001 + except Exception: # ruff:ignore[blind-except] return None if filepath is None: @@ -68,7 +68,7 @@ def linkcode_resolve( linkcode_url = ( f"https://github.com/inducer/{project}/blob/" + "main" - + "/{filepath}#L{linestart}-L{linestop}" # noqa: RUF027 + + "/{filepath}#L{linestart}-L{linestop}" # ruff:ignore[missing-f-string-syntax] ) return linkcode_url.format(