summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-02-19 21:27:16 +0000
committerGravatar Chris Lovering <[email protected]>2024-03-04 12:35:02 +0000
commit9c8fbd74b1d922f241c926cc26d609d0d13ae1c5 (patch)
tree0c2551275318d3ee0d64e4874121d54425ad4e4b /docs
parentruff lint fix: Add explicit namespaces for packages (diff)
ruff lint fix: Run remaining auto-fixable rules
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py4
-rw-r--r--docs/netlify_build.py2
-rw-r--r--docs/utils.py4
3 files changed, 4 insertions, 6 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 2b68fc0f..5205b013 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -120,9 +120,7 @@ def skip(*args) -> bool:
name = args[2]
would_skip = args[4]
- if name in (
- "__weakref__",
- ):
+ if name == "__weakref__":
return True
return would_skip
diff --git a/docs/netlify_build.py b/docs/netlify_build.py
index a6da74df..4c35e6ba 100644
--- a/docs/netlify_build.py
+++ b/docs/netlify_build.py
@@ -23,4 +23,4 @@ OUTPUT.write_text(build_script.text, encoding="utf-8")
if __name__ == "__main__":
# Run the build script
print("Build started") # noqa: T201
- subprocess.run([sys.executable, OUTPUT.absolute()]) # noqa: S603
+ subprocess.run([sys.executable, OUTPUT.absolute()], check=False) # noqa: S603
diff --git a/docs/utils.py b/docs/utils.py
index 18a457b7..796eca3d 100644
--- a/docs/utils.py
+++ b/docs/utils.py
@@ -74,11 +74,11 @@ def linkcode_resolve(repo_link: str, domain: str, info: dict[str, str]) -> str |
for name in symbol_name.split("."):
try:
symbol.append(getattr(symbol[-1], name))
- except AttributeError as e:
+ except AttributeError:
# This could be caused by trying to link a class attribute
if is_attribute(symbol[-1], name):
break
- raise e
+ raise
symbol_name = name