Compare commits

..

No commits in common. "bdd58e90f20d3dbf8c1267432719890bbf11f0fd" and "2d8c6320dc5c6e3ccb588d198dff887e34fbe3e6" have entirely different histories.

4 changed files with 3 additions and 8 deletions

View file

@ -11,7 +11,7 @@ from cd.projects import Projects
COMMANDS_PREFIX = "cd-" COMMANDS_PREFIX = "cd-"
projects = Projects() projects = Projects(os.environ)
project = Project(projects) project = Project(projects)

View file

@ -1,4 +1,3 @@
"""CI project."""
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path

View file

@ -1,7 +1,5 @@
"""CI projects."""
from __future__ import annotations from __future__ import annotations
import os
from pathlib import Path from pathlib import Path
GROUP_AND_NAME = [ GROUP_AND_NAME = [
@ -15,8 +13,8 @@ SERVER_URL = [
class Projects: class Projects:
def __init__(self: Projects) -> None: def __init__(self: Projects, environment) -> None:
self.environment = os.environ self.environment = environment
# group, name # group, name
for variable in GROUP_AND_NAME: for variable in GROUP_AND_NAME:
if value := self.environment.get(variable, None): if value := self.environment.get(variable, None):

View file

@ -1,2 +0,0 @@
[tool.ruff]
select = ["ALL"]