Proteobench / ProteoBench

ProteoBench is an open and collaborative platform for community-curated benchmarks for proteomics data analysis pipelines. Our goal is to allow a continuous, easy, and controlled comparison of proteomics data analysis workflows.
https://proteobench.readthedocs.io
Apache License 2.0
27 stars 7 forks source link

Convert methods in gh.py into a class #276

Open wolski opened 3 months ago

wolski commented 3 months ago

I suggest that methods (gh.py)[https://github.com/Proteobench/ProteoBench/blob/main/proteobench/github/gh.py] are refactored to a class. The remote_git could be set in the constructor for instance:

def __init__(self,remote_git)
    self.remote_git_repo = remote_git

def clone_repo_anon(
    clone_dir="K:/pb/",
):
    repo = Repo.clone_from(self.remote_git_repo, clone_dir)
    return clone_dir