format code

This commit is contained in:
Rasmus Moorats 2024-11-01 13:16:49 +02:00
parent d1e8bbc4da
commit c64ae96953
Signed by: xx
GPG key ID: FE14255A6AE7241C
6 changed files with 26 additions and 17 deletions
aurtomata
templates/burpsuite-pro

View file

@ -1,7 +1,8 @@
#!/usr/bin/env python
from cleo.application import Application
from aurtomata.cli import RenderCommand, BuildCommand
from aurtomata.cli import BuildCommand, RenderCommand
app = Application("aurtomata")
app.add(RenderCommand())

View file

@ -1,9 +1,10 @@
import docker
from docker.models.containers import Container
from io import BytesIO
from pathlib import Path
from random import choices
from string import ascii_lowercase, digits
from pathlib import Path
import docker
from docker.models.containers import Container
dockerfile = b"""
FROM archlinux:base-devel
@ -22,9 +23,11 @@ USER aurtomata
"""
repo_mount_point = "/home/aurtomata/repo"
class SupervisorException(Exception):
pass
class Supervisor:
dc: docker.DockerClient
containers: dict[str, Container]

View file

@ -1,12 +1,12 @@
from cleo.commands.command import Command
from cleo.helpers import argument, option
from pathlib import Path
from shutil import rmtree
from aurtomata.repo import Repo
from aurtomata.template import NoRepoPyException, NoPkgbuildTemplateException
from cleo.commands.command import Command
from cleo.helpers import argument, option
from aurtomata.ci import Supervisor
from aurtomata.repo import Repo
from aurtomata.template import NoPkgbuildTemplateException, NoRepoPyException
basedir = Path().home() / ".local/aurtomata"

View file

@ -1,8 +1,10 @@
from tempfile import mkdtemp
from shutil import rmtree
from git import Repo as repo_plumbing
from pathlib import Path
import shutil
from pathlib import Path
from shutil import rmtree
from tempfile import mkdtemp
from git import Repo as repo_plumbing
class GitRepo:
env: dict

View file

@ -1,7 +1,9 @@
from aurtomata.template import RepoTemplate
from aurtomata.db import Database
from pathlib import Path
from aurtomata.db import Database
from aurtomata.template import RepoTemplate
class Repo:
template: RepoTemplate
db: Database

View file

@ -1,8 +1,9 @@
import time
import re
import requests
import time
from datetime import datetime
import requests
class Repo:
release_data: dict