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

Feature/python typing/list.py #2214

Merged
merged 15 commits into from
Oct 18, 2023
Prev Previous commit
Next Next commit
Update list.py
  • Loading branch information
NovakApis committed Mar 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7b1da94780ae25ad928f8046dc4035669f795865
4 changes: 2 additions & 2 deletions nf_core/components/list.py
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ def __init__(self, component_type, pipeline_dir, remote=True, remote_url=None, b
self.remote = remote

def list_components(self, keywords: Optional[List[str]] = None, print_json=False) -> rich.table.Table:
keywords = keywords or [] # TODO double check if keywords is a list of strings
keywords = keywords or []
"""
Get available modules/subworkflows names from GitHub tree for repo
and print as list to stdout
@@ -27,7 +27,7 @@ def list_components(self, keywords: Optional[List[str]] = None, print_json=False
# self.check_component_structure(self.component_type)

# Initialise rich table
table: rich.table.Table = rich.table.Table() # TODO type the table
table: rich.table.Table = rich.table.Table()
table.add_column(f"{self.component_type[:-1].capitalize()} Name")
components: List[str] = []