run ruff formatting

This commit is contained in:
Vincent Emonet 2023-07-09 12:29:11 +02:00
parent 62712dcad3
commit bf18dcbcf9
22 changed files with 82 additions and 75 deletions

View file

@ -1,7 +1,9 @@
from prometheus_client import multiprocess
import re
import sys
from prometheus_client import multiprocess
def child_exit(server, worker):
multiprocess.mark_process_dead(worker.pid)
@ -35,7 +37,7 @@ def on_starting(server):
args = get_args()
from libretranslate import storage, scheduler, flood, secret
from libretranslate import flood, scheduler, secret, storage
storage.setup(args.shared_storage)
scheduler.setup(args)
flood.setup(args)