Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
  • Loading branch information
bebatut and nsoranzo authored Oct 31, 2023
1 parent 307917b commit 183a102
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/extract_galaxy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def check_categories(ts_categories, ts_cat):
return True


def get_tool_metadata(tool, repo):
"""" "
def get_tool_metadata(tool: ContentFile, repo: Repository) -> :
"""
Get tool metadata from the .shed.yaml, requirements in the macros or xml
file, bio.tools information if available in the macros or xml, EDAM
annotations using bio.tools API, recent conda version using conda API
Expand Down Expand Up @@ -274,7 +274,7 @@ def get_tool_metadata(tool, repo):
return metadata


def parse_tools(repo):
def parse_tools(repo: Repository):
"""
Parse tools in a GitHub repository, extract them and their metadata
Expand Down Expand Up @@ -352,7 +352,7 @@ def export_tools(tools: list, output_fp: str) -> None:
df.to_csv(output_fp, sep="\t", index=False)


def filter_tools(tools, ts_cat, excluded_tools, keep_tools):
def filter_tools(tools, ts_cat: List[str], excluded_tools: List[str], keep_tools: List[str]):
"""
Filter tools for specific ToolShed categories and add information if to keep or to exclude
Expand Down

0 comments on commit 183a102

Please sign in to comment.