Global formatting fix

This commit is contained in:
Piotr Dec 2025-11-03 22:42:37 +01:00
parent 700ef25358
commit 324938133f
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
5 changed files with 7 additions and 3 deletions

View file

@ -10,6 +10,7 @@ class Request:
started: str started: str
files: List[str] files: List[str]
@dataclass @dataclass
class Response: class Response:
status: int status: int

View file

@ -1,6 +1,7 @@
from dataclasses import dataclass, field from dataclasses import dataclass, field
from typing import Type from typing import Type
# TODO: unnecessary? # TODO: unnecessary?
@dataclass @dataclass
@ -8,6 +9,7 @@ class PathItem:
name: str name: str
t: Type t: Type
@dataclass @dataclass
class Path: class Path:
path: list[PathItem] = field(default_factory=list) path: list[PathItem] = field(default_factory=list)
@ -43,7 +45,8 @@ class Password:
def path(self): def path(self):
return self.group.path.append(self.name, type(self)) return self.group.path.append(self.name, type(self))
class UnencryptedPassword(Password): class UnencryptedPassword(Password):
def __init__(self, name: str, value: str, group: Group): def __init__(self, name: str, value: str, group: Group):
super().__init__(name, group) super().__init__(name, group)
self.value = value self.value = value

View file

@ -1,6 +1,7 @@
from dataclasses import dataclass from dataclasses import dataclass
from typing import List from typing import List
@dataclass @dataclass
class WoodpeckerEvent: class WoodpeckerEvent:
_id: str _id: str

View file

@ -38,4 +38,3 @@ class DockerService:
def reload(self, compose_path: Path): def reload(self, compose_path: Path):
cmd = ["sudo", "docker", "compose", "-f", str(compose_path), "up", "-d"] cmd = ["sudo", "docker", "compose", "-f", str(compose_path), "up", "-d"]
# TODO: subprocess # TODO: subprocess

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>{{ title }}</title> <title>{{ title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/> <meta content="width=device-width, initial-scale=1" name="viewport"/>
<style> <style>
body { body {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";