The base model basically just adds typing to peewee (lmao) and also handles the date_created, date_updated fields all methods, except for raw SQL. This should make it a little easier to write a tiny async layer on top of it all. Signed-off-by: Max R. Carrara <max@aequito.sh>
50 lines
809 B
TOML
50 lines
809 B
TOML
[project]
|
|
name = "stammtisch-bot"
|
|
version = "0.1.0"
|
|
description = "A funny bot for our little Discord server."
|
|
requires-python = ">=3.13"
|
|
readme = "README.md"
|
|
license = { text = "MIT" }
|
|
|
|
dependencies = [
|
|
"peewee>=3.17.9",
|
|
"pydantic>=2.10.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
bot = "bot.main:main"
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=42"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"mypy>=1.0.0",
|
|
"pytest>=7.0.0",
|
|
"ruff>=0.9.9",
|
|
]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.13"
|
|
plugins = [
|
|
"pydantic.mypy"
|
|
]
|
|
ignore_missing_imports = true
|
|
check_untyped_defs = true
|
|
disallow_untyped_defs = true
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "7.0"
|
|
addopts = "-ra -q"
|
|
testpaths = [
|
|
"tests"
|
|
]
|
|
python_files = [
|
|
"test_*.py"
|
|
]
|
|
|
|
[tool.ruff]
|
|
line-length = 88
|
|
target-version = "py313"
|
|
|