flake8 compliant

This commit is contained in:
brb
2023-07-13 11:53:14 +02:00
parent 6492b22219
commit 1266204ecb
6 changed files with 20 additions and 10 deletions
+2 -2
View File
@@ -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