Skip to content

Commit 5da845f

Browse files
committed
Lint
1 parent 113ea05 commit 5da845f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pipeline/core/builder.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,12 @@ def convert_oss_link(match: re.Match) -> str:
827827
post = match.group(3) # Everything after the URL
828828

829829
# Only convert absolute /oss/ paths that don't contain 'images' or '/oss/python' or '/oss/javascript'
830-
if url.startswith("/oss/") and "images" not in url and "/oss/python" not in url and "/oss/javascript" not in url:
830+
if (
831+
url.startswith("/oss/")
832+
and "images" not in url
833+
and "/oss/python" not in url
834+
and "/oss/javascript" not in url
835+
):
831836
# Convert to relative path that works from oss/python/* or oss/js/*
832837
# e.g., /oss/releases/langchain-v1 becomes ../releases/langchain-v1
833838
parts = url.split("/")

0 commit comments

Comments
 (0)