Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linkml_files #310

Merged
merged 4 commits into from
Mar 28, 2024
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions linkml_runtime/linkml_model/linkml_files.py
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@
RDF = "rdf"
SHEXC = "shex"
SHEXJ = "shex"
YAML = "model/schema"
YAML = os.path.join("model", "schema")

Check warning on line 70 in linkml_runtime/linkml_model/linkml_files.py

Codecov / codecov/patch

linkml_runtime/linkml_model/linkml_files.py#L70

Added line #L70 was not covered by tests


class ReleaseTag(_AutoName):
@@ -80,7 +80,7 @@

def _build_path(source: Source, fmt: Format) -> str:
""" Create the relative path for source and fmt """
return f"{_Path[fmt.name].value}/{source.value}.{fmt.value}"
return os.path.join(_Path[fmt.name].value, f"{source.value}.{fmt.value}")

Check warning on line 83 in linkml_runtime/linkml_model/linkml_files.py

Codecov / codecov/patch

linkml_runtime/linkml_model/linkml_files.py#L83

Added line #L83 was not covered by tests


def _build_loc(base: str, source: Source, fmt: Format) -> str: