Linting, removed extra line from pyproject.toml.

This commit is contained in:
2023-11-09 05:08:46 +00:00
parent b8197d7974
commit 9762d7c1ad
10 changed files with 1 additions and 11 deletions
-1
View File
@@ -98,7 +98,6 @@ def _main():
return 0
def _confdir(args):
if args["-c"]:
# Custom config directory
-1
View File
@@ -82,7 +82,6 @@ async def control(req, ws):
await asend(ws, StatusMsg(status="ack", req=cmd))
@bp.websocket("watch")
@websocket_wrapper
async def watch(req, ws):
-2
View File
@@ -39,14 +39,12 @@ async def main_start(app, loop):
app.ctx.threadexec = ThreadPoolExecutor(max_workers=8)
@app.after_server_stop
async def main_stop(app, loop):
await watching.stop(app, loop)
app.ctx.threadexec.shutdown()
@app.on_request
async def use_session(req):
req.ctx.session = session.get(req)
-1
View File
@@ -74,7 +74,6 @@ def verify(request, *, privileged=False):
raise Unauthorized("Login required", "cookie")
bp = Blueprint("auth")
-1
View File
@@ -24,7 +24,6 @@ class User(msgspec.Struct, omit_defaults=True):
lastSeen: int = 0 # noqa: N815
class Link(msgspec.Struct, omit_defaults=True):
location: str
creator: str = ""
-2
View File
@@ -25,7 +25,6 @@ class MkDir(ControlBase):
path.mkdir(parents=True, exist_ok=False)
class Rename(ControlBase):
path: str
to: str
@@ -51,7 +50,6 @@ class Rm(ControlBase):
p.unlink()
class Mv(ControlBase):
sel: list[str]
dst: str
-1
View File
@@ -36,7 +36,6 @@ def run(*, dev=False):
Sanic.serve_single()
def check_cert(certdir, domain):
if (certdir / "privkey.pem").exist() and (certdir / "fullchain.pem").exists():
return
-1
View File
@@ -221,7 +221,6 @@ async def broadcast(msg):
logging.exception("Broadcast error")
async def start(app, loop):
config.load_config()
app.ctx.watcher = threading.Thread(