Refactor main.py to implement Flask app, SQLAlchemy models for Bot and BotLog, and health check functionality. Update pyproject.toml with new dependencies and add new HTML templates for the user interface. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e72fc1b7-94bd-4d6c-801f-cbac2fae245c Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Event-Id: 5f598d52-420e-4e2c-88ea-a4c3e41fdcb6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/e72fc1b7-94bd-4d6c-801f-cbac2fae245c/jW8PJKQ Replit-Helium-Checkpoint-Created: true
27 lines
No EOL
660 B
TOML
27 lines
No EOL
660 B
TOML
[tool.poetry]
|
|
name = "python-template"
|
|
version = "0.1.0"
|
|
description = ""
|
|
authors = ["Your Name <you@example.com>"]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = ">=3.10.0,<3.11"
|
|
gunicorn = "^23.0.0"
|
|
discord-py = "^2.6.4"
|
|
flask = "^3.1.2"
|
|
flask-sqlalchemy = "^3.1.1"
|
|
psycopg2-binary = "^2.9.11"
|
|
requests = "^2.32.5"
|
|
|
|
[tool.pyright]
|
|
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md
|
|
useLibraryCodeForTypes = true
|
|
|
|
[tool.ruff]
|
|
# https://beta.ruff.rs/docs/configuration/
|
|
select = ['E', 'W', 'F', 'I', 'B', 'C4', 'ARG', 'SIM']
|
|
ignore = ['W291', 'W292', 'W293']
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api" |