Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgayoso committed Mar 19, 2023
1 parent 766c008 commit baaccf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# -- Project information -----------------------------------------------------

project_name = "visionpy"
project_name = "visionpy-sc"
info = metadata(project_name)
package_name = "visionpy"
author = info["Author"]
Expand Down Expand Up @@ -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
Expand All @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ ignore = [
]

[tool.ruff.per-file-ignores]
"docs/*" = ["I"]
"docs/*" = ["I", "BLE001"]
"tests/*" = ["D"]
"*/__init__.py" = ["F401"]

Expand Down

0 comments on commit baaccf0

Please sign in to comment.