Resolved some pylint issues

This commit is contained in:
Clemens 2023-03-31 14:59:37 +02:00
parent 32847914a7
commit 50a722794c
6 changed files with 8 additions and 9 deletions

View file

@ -1,5 +1,5 @@
from .domain import Devops, Image
from .infrastructure import FileApi, ResourceApi, ImageApi, ExecutionApi
from .domain import Image
from .infrastructure import FileApi, ResourceApi, ImageApi
class ImageBuildService:

View file

@ -2,7 +2,7 @@ import deprecation
from .domain import C4k, DnsRecord
from .devops_build import DevopsBuild
from .credential import gopass_field_from_path, gopass_password_from_path
from .infrastructure import ProjectRepository, FileApi, ExecutionApi
from .infrastructure import ExecutionApi
@deprecation.deprecated(deprecated_in="3.2")

View file

@ -1,6 +1,6 @@
import deprecation
from typing import Optional
from subprocess import run, CalledProcessError
import deprecation
from .domain import Devops
from .infrastructure import ProjectRepository, FileApi
@ -50,7 +50,7 @@ class DevopsBuild:
)
else:
raise Exception("Build parameters could not be set!")
self.repo.set_devops(self.project, devops)
self.repo.set_build(self.project, self)

View file

@ -1,5 +1,5 @@
import deprecation
from typing import Optional
import deprecation
from .domain import Image
from .application import ImageBuildService
from .devops_build import DevopsBuild, create_devops_build_config

View file

@ -1,11 +1,11 @@
from pathlib import Path
from sys import stdout
from pkg_resources import resource_string
from os import chmod
from subprocess import run
from pkg_resources import resource_string
import yaml
from .domain import Devops, Image, C4k
from .python_util import execute, execute_live
from .python_util import execute
class ProjectRepository:

View file

@ -1,5 +1,4 @@
from subprocess import check_output, Popen, PIPE
import sys
def execute(cmd, shell=False):
output = check_output(cmd, encoding='UTF-8', shell=shell)