Resolved some pylint issues
This commit is contained in:
parent
32847914a7
commit
50a722794c
6 changed files with 8 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
||||||
from .domain import Devops, Image
|
from .domain import Image
|
||||||
from .infrastructure import FileApi, ResourceApi, ImageApi, ExecutionApi
|
from .infrastructure import FileApi, ResourceApi, ImageApi
|
||||||
|
|
||||||
|
|
||||||
class ImageBuildService:
|
class ImageBuildService:
|
||||||
|
|
|
@ -2,7 +2,7 @@ import deprecation
|
||||||
from .domain import C4k, DnsRecord
|
from .domain import C4k, DnsRecord
|
||||||
from .devops_build import DevopsBuild
|
from .devops_build import DevopsBuild
|
||||||
from .credential import gopass_field_from_path, gopass_password_from_path
|
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")
|
@deprecation.deprecated(deprecated_in="3.2")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import deprecation
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from subprocess import run, CalledProcessError
|
from subprocess import run, CalledProcessError
|
||||||
|
import deprecation
|
||||||
from .domain import Devops
|
from .domain import Devops
|
||||||
from .infrastructure import ProjectRepository, FileApi
|
from .infrastructure import ProjectRepository, FileApi
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ class DevopsBuild:
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise Exception("Build parameters could not be set!")
|
raise Exception("Build parameters could not be set!")
|
||||||
|
|
||||||
self.repo.set_devops(self.project, devops)
|
self.repo.set_devops(self.project, devops)
|
||||||
self.repo.set_build(self.project, self)
|
self.repo.set_build(self.project, self)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import deprecation
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
import deprecation
|
||||||
from .domain import Image
|
from .domain import Image
|
||||||
from .application import ImageBuildService
|
from .application import ImageBuildService
|
||||||
from .devops_build import DevopsBuild, create_devops_build_config
|
from .devops_build import DevopsBuild, create_devops_build_config
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from sys import stdout
|
from sys import stdout
|
||||||
from pkg_resources import resource_string
|
|
||||||
from os import chmod
|
from os import chmod
|
||||||
from subprocess import run
|
from subprocess import run
|
||||||
|
from pkg_resources import resource_string
|
||||||
import yaml
|
import yaml
|
||||||
from .domain import Devops, Image, C4k
|
from .domain import Devops, Image, C4k
|
||||||
from .python_util import execute, execute_live
|
from .python_util import execute
|
||||||
|
|
||||||
|
|
||||||
class ProjectRepository:
|
class ProjectRepository:
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
from subprocess import check_output, Popen, PIPE
|
from subprocess import check_output, Popen, PIPE
|
||||||
import sys
|
|
||||||
|
|
||||||
def execute(cmd, shell=False):
|
def execute(cmd, shell=False):
|
||||||
output = check_output(cmd, encoding='UTF-8', shell=shell)
|
output = check_output(cmd, encoding='UTF-8', shell=shell)
|
||||||
|
|
Loading…
Reference in a new issue