From 7d2d197cbb31b906e1ccaec159e40b4a7c723fa7 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Mon, 14 Aug 2023 20:41:04 +0200 Subject: [PATCH] fix some linting --- src/main/python/ddadevops/domain/artifact.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/python/ddadevops/domain/artifact.py b/src/main/python/ddadevops/domain/artifact.py index fc1d221..e6d5904 100644 --- a/src/main/python/ddadevops/domain/artifact.py +++ b/src/main/python/ddadevops/domain/artifact.py @@ -4,10 +4,12 @@ from .common import ( Validateable, ) + class ArtifactType(Enum): TEXT = 0 JAR = 1 + class Artifact(Validateable): def __init__(self, path: str): self.path_str = path @@ -22,7 +24,7 @@ class Artifact(Validateable): return "application/x-java-archive" case _: return "text/plain" - + def validate(self): result = [] result += self.__validate_is_not_empty__("path_str") @@ -40,4 +42,3 @@ class Artifact(Validateable): def __hash__(self) -> int: return self.__str__().__hash__() -