Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions sphinxconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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(
Expand Down
Loading