flake8 compliant
This commit is contained in:
+2
-2
@@ -1,5 +1,4 @@
|
||||
from pydantic import AnyHttpUrl
|
||||
from typing import List
|
||||
from pathlib import Path
|
||||
from git import Repo
|
||||
import logging
|
||||
@@ -8,6 +7,7 @@ import os
|
||||
import yaml
|
||||
from runner_script import RunnerScript
|
||||
|
||||
|
||||
def clone_repository(repo_url: AnyHttpUrl) -> Path:
|
||||
# extract repo name
|
||||
repo_name = repo_url.split('/')[-1].replace('.git', '')
|
||||
@@ -23,6 +23,7 @@ def clone_repository(repo_url: AnyHttpUrl) -> Path:
|
||||
logging.debug('finished')
|
||||
return dst_dir
|
||||
|
||||
|
||||
def load_runner_script(path: Path) -> RunnerScript:
|
||||
assert path.exists()
|
||||
with open(path, 'r') as fh:
|
||||
@@ -30,4 +31,3 @@ def load_runner_script(path: Path) -> RunnerScript:
|
||||
runner_script = RunnerScript.parse_obj(script)
|
||||
logging.debug('finished')
|
||||
return runner_script
|
||||
|
||||
Reference in New Issue
Block a user