Skip to content

Commit

Permalink
fix schema tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Feb 1, 2024
1 parent 0fe6533 commit ef65f76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nf_core/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import os
import re
from datetime import datetime
from pathlib import Path
from typing import Union

import git
import requests
Expand Down Expand Up @@ -39,12 +41,12 @@ def list_workflows(filter_by=None, sort_by="release", as_json=False, show_archiv
return wfs.print_summary()


def get_local_wf(workflow, revision=None) -> str:
def get_local_wf(workflow: Union[str, Path], revision=None) -> Union[str, None]:
"""
Check if this workflow has a local copy and use nextflow to pull it if not
"""
# Assume nf-core if no org given
if workflow.count("/") == 0:
if str(workflow).count("/") == 0:
workflow = f"nf-core/{workflow}"

wfs = Workflows()
Expand Down

0 comments on commit ef65f76

Please sign in to comment.