feat: Add ruff linting

This commit is contained in:
2025-09-02 15:48:21 +10:00
parent 30de2d585e
commit 997828795a
10 changed files with 86 additions and 93 deletions

View File

@@ -1,4 +1,3 @@
import os
import sys
import platform
from main import app
@@ -39,6 +38,6 @@ if __name__ == '__main__':
sys.exit()
print(f'Starting server with Waitress on {platform.system()} with {threads} threads...', flush=True)
print(f'Press Ctrl+C to stop the server', flush=True)
print(f'Serving on http://0.0.0.0:5000/', flush=True)
print('Press Ctrl+C to stop the server', flush=True)
print('Serving on http://0.0.0.0:5000/', flush=True)
serve(app, host="0.0.0.0", port=5000, threads=threads)