diff --git a/docs/conf.py b/docs/conf.py index b7566a9..05fe972 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,7 @@ # -- Project information ----------------------------------------------------- -project_name = "visionpy" +project_name = "visionpy-sc" info = metadata(project_name) package_name = "visionpy" author = info["Author"] @@ -125,14 +125,14 @@ def git(*args): try: git_ref = git("name-rev", "--name-only", "--no-undefined", "HEAD") git_ref = re.sub(r"^(remotes/[^/]+|tags)/", "", git_ref) -except Exception: # noqa: B902 +except Exception: pass # (if no name found or relative ref, use commit hash instead) if not git_ref or re.search(r"[\^~]", git_ref): try: git_ref = git("rev-parse", "HEAD") - except Exception: # noqa: B902 + except Exception: git_ref = "main" # https://github.com/DisnakeDev/disnake/blob/7853da70b13fcd2978c39c0b7efa59b34d298186/docs/conf.py#L192 @@ -156,7 +156,7 @@ def linkcode_resolve(domain, info): path = os.path.relpath(inspect.getsourcefile(obj), start=_project_module_path) # type: ignore src, lineno = inspect.getsourcelines(obj) - except Exception: # noqa: B902 + except Exception: return None path = f"{path}#L{lineno}-L{lineno + len(src) - 1}" diff --git a/pyproject.toml b/pyproject.toml index 6b8d477..a59cc55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,7 +118,7 @@ ignore = [ ] [tool.ruff.per-file-ignores] -"docs/*" = ["I"] +"docs/*" = ["I", "BLE001"] "tests/*" = ["D"] "*/__init__.py" = ["F401"]