This commit is contained in:
Marc Beninca 2024-06-09 20:04:29 +02:00
parent 4ebb931490
commit 3b66390840
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,10 @@
from __future__ import annotations
from pathlib import Path from pathlib import Path
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from cd.projects import Projects
BRANCH = [ BRANCH = [
"GITHUB_REF_NAME", "GITHUB_REF_NAME",
@ -15,7 +21,7 @@ ROOT = [
class Project: class Project:
def __init__(self, projects) -> None: def __init__(self: Project, projects: Projects) -> None:
self.projects = projects self.projects = projects
# branch # branch
for variable in BRANCH: for variable in BRANCH:

View file

@ -1,3 +1,5 @@
from __future__ import annotations
from pathlib import Path from pathlib import Path
GROUP_AND_NAME = [ GROUP_AND_NAME = [
@ -11,7 +13,7 @@ SERVER_URL = [
class Projects: class Projects:
def __init__(self, environment) -> None: def __init__(self: Projects, environment) -> None:
self.environment = environment self.environment = environment
# group, name # group, name
for variable in GROUP_AND_NAME: for variable in GROUP_AND_NAME: