Skip to content

Commit

Permalink
fix docs linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Dec 9, 2024
1 parent fe6b706 commit f615403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cwltool/cwlprov/ro.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def initialize_provenance(
fsaccess: StdFsAccess,
run_uuid: Optional[uuid.UUID] = None,
) -> "ProvenanceProfile":
"""Hook function allowing calling code to extend the provenance details if needed."""
"""Provide a provenance profile initialization hook function to extend details as needed."""
from .provenance_profile import ProvenanceProfile

return ProvenanceProfile(
Expand Down Expand Up @@ -144,7 +144,7 @@ def _initialize_bagit(self) -> None:
bag_it_file.write(f"Tag-File-Character-Encoding: {ENCODING}\n")

def resolve_user(self) -> tuple[str, str]:
"""Hook function in case the calling code can provide a better resolution."""
"""Provide a user provenance hook function in case the calling code can provide a better resolution."""
return _whoami()

Check warning on line 148 in cwltool/cwlprov/ro.py

View check run for this annotation

Codecov / codecov/patch

cwltool/cwlprov/ro.py#L148

Added line #L148 was not covered by tests

def user_provenance(self, document: ProvDocument) -> None:
Expand Down Expand Up @@ -187,7 +187,7 @@ def user_provenance(self, document: ProvDocument) -> None:
document.actedOnBehalfOf(account, user)

def resolve_host(self) -> tuple[str, str]:
"""Hook function in case the calling code can provide a better resolution."""
"""Provide a host provenance hook function in case the calling code can provide a better resolution."""
fqdn = getfqdn()
return fqdn, fqdn # allow for (fqdn, uri) to be distinct, but the same by default

Check warning on line 192 in cwltool/cwlprov/ro.py

View check run for this annotation

Codecov / codecov/patch

cwltool/cwlprov/ro.py#L191-L192

Added lines #L191 - L192 were not covered by tests

Expand Down

0 comments on commit f615403

Please sign in to comment.