1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Reformat code

This commit is contained in:
Steffo 2020-08-19 00:08:58 +02:00
parent 0c5e07c6b9
commit 207c2d4dcc
4 changed files with 15 additions and 14 deletions

View file

@ -1,14 +1,13 @@
from typing import *
import logging
import multiprocessing
import time
from typing import *
import click
import toml
import royalnet.utils as ru
import royalnet.serf as rs
import royalnet.utils as ru
try:
import royalnet.serf.telegram as rst
@ -124,6 +123,7 @@ def run(config_file: str):
"serf_cfg": serf_cfg,
}
)
processes[f"Serf.{name}"] = ru.RoyalnetProcess(serf_constructor, None)
log.info(f"Serf.{name}: Enabled")
@ -154,6 +154,7 @@ def run(config_file: str):
"constellation_cfg": config["Constellation"],
}
)
processes["Constellation"] = ru.RoyalnetProcess(constellation_constructor, None)
log.info("Constellation: Enabled")

View file

@ -2,13 +2,13 @@ from .asyncify import asyncify
from .formatters import andformat, underscorize, ytdldateformat, numberemojiformat, ordinalformat
from .log import init_logging
from .multilock import MultiLock
from .royalnetprocess import RoyalnetProcess
from .royaltyping import JSON
from .sentry import init_sentry, sentry_exc, sentry_wrap, sentry_async_wrap
from .sleep_until import sleep_until
from .strip_tabs import strip_tabs
from .taskslist import TaskList
from .urluuid import to_urluuid, from_urluuid
from .royalnetprocess import RoyalnetProcess
__all__ = [
"asyncify",

View file

@ -1,6 +1,6 @@
from typing import *
import dataclasses
import multiprocessing
from typing import *
@dataclasses.dataclass()