This repository has been archived on 2025-04-06. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
p.ari.lt/src/main.py
Ari Archer 6e808d9b61
run.sh
Signed-off-by: Ari Archer <ari@ari.lt>
2024-06-29 20:02:18 +03:00

27 lines
526 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""a"""
import os
from warnings import filterwarnings as filter_warnings
from flask import Flask
from app import create_app
app: Flask = create_app(__name__, os.environ["DB"])
def main() -> int:
"""entry / main function"""
app.run("127.0.0.1", 8080, True)
return 0
if __name__ == "__main__":
assert main.__annotations__.get("return") is int, "main() should return an integer"
filter_warnings("error", category=Warning)
raise SystemExit(main())