self/:useless
This commit is contained in:
parent
4bd86a8880
commit
400fefeecc
2 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@ ROOT = [
|
||||||
class Project:
|
class Project:
|
||||||
"""Current project."""
|
"""Current project."""
|
||||||
|
|
||||||
def __init__(self: Project, projects: Projects) -> None:
|
def __init__(self, projects: Projects) -> None:
|
||||||
"""Set projects, branch, name, root & url."""
|
"""Set projects, branch, name, root & url."""
|
||||||
self.projects = projects
|
self.projects = projects
|
||||||
# branch
|
# branch
|
||||||
|
@ -45,7 +45,7 @@ class Project:
|
||||||
# url
|
# url
|
||||||
self.url = add_url_path(projects.url, self.name)
|
self.url = add_url_path(projects.url, self.name)
|
||||||
|
|
||||||
def __str__(self: Project) -> str:
|
def __str__(self) -> str:
|
||||||
"""List branch, name, root & url."""
|
"""List branch, name, root & url."""
|
||||||
return f"""\
|
return f"""\
|
||||||
branch = {self.branch}
|
branch = {self.branch}
|
||||||
|
|
|
@ -20,7 +20,7 @@ SERVER_URL = [
|
||||||
class Projects:
|
class Projects:
|
||||||
"""Other projects."""
|
"""Other projects."""
|
||||||
|
|
||||||
def __init__(self: Projects) -> None:
|
def __init__(self) -> None:
|
||||||
"""Set environment, group, name & url."""
|
"""Set environment, group, name & url."""
|
||||||
self.environment = os.environ
|
self.environment = os.environ
|
||||||
# group, name
|
# group, name
|
||||||
|
@ -34,7 +34,7 @@ class Projects:
|
||||||
if value := self.environment.get(variable, None):
|
if value := self.environment.get(variable, None):
|
||||||
self.url = add_url_path(value, self.group)
|
self.url = add_url_path(value, self.group)
|
||||||
|
|
||||||
def __str__(self: Projects) -> str:
|
def __str__(self) -> str:
|
||||||
"""List group, name & url."""
|
"""List group, name & url."""
|
||||||
return f"""\
|
return f"""\
|
||||||
group = {self.group}
|
group = {self.group}
|
||||||
|
|
Loading…
Reference in a new issue