-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (102 loc) · 2.74 KB
/
pyproject.toml
File metadata and controls
116 lines (102 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "autonomia"
version = "0.1.0"
description = "Telegram bot for LLM-based processing, analyzing and answering messages"
authors = ["Mia Grigoreva <mia@superchromia.com>"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.116.1"
uvicorn = "^0.35.0"
sqlalchemy = "^2.0.41"
alembic = "^1.16.4"
asyncpg = "^0.30.0"
psycopg2-binary = "^2.9.10"
telethon = "^1.40.0"
aiohttp = "^3.12.14"
apscheduler = "^3.11.0"
boto3 = "^1.39.4"
openai = "^1.96.0"
pillow = "^11.3.0"
requests = "^2.32.4"
tqdm = "^4.67.1"
jinja2 = "^3.1.2"
python-multipart = "^0.0.20"
sqladmin = {extras = ["full"], version = "^0.21.0"}
pydantic = "^2.0.0"
pydantic-settings = "^2.0.0"
itsdangerous = "^2.0.0"
pgvector = "^0.4.1"
mcp-server-fetch = "^2025.4.7"
[tool.poetry.group.dev.dependencies]
ruff = "^0.8.1"
pytest = "^8.0.0"
pytest-asyncio = "^0.24.0"
pytest-cov = "^5.0.0"
pytest-mock = "^3.12.0"
aiosqlite = "^0.20.0"
black = "^24.0.0"
[tool.poetry.scripts]
autonomia = "app:main"
[tool.ruff]
# Same as Black.
line-length = 160
# Assume Python 3.11
target-version = "py311"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint]
# Enable pycodestyle (`E`), Pyflakes (`F`), and isort (`I`) codes
select = ["E", "F", "I", "W", "B", "C4", "UP", "N", "ARG", "SIM", "TCH", "Q", "RUF"]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"ARG001", # unused function argument
"ARG002", # unused method argument
"ARG003", # unused class method argument
"RUF006", # store reference to return value
"RUF013", # implicit Optional
"SIM117", # use single with statement
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["api", "jobs", "models", "repositories", "storage", "external"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.black]
line-length = 160
target-version = ['py311']