-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
84 lines (77 loc) · 1.63 KB
/
pyproject.toml
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
[tool.poetry]
name = "llama-bot"
version = "0.1.0"
description = ""
authors = ["Roman Solomatin <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
python-telegram-bot = "^20.5"
pydantic-settings = "^2.0.3"
sqlalchemy = {extras = ["asyncio"], version = "^2.0.20"}
asyncpg = "^0.28.0"
alembic = "^1.12.0"
sqlalchemy-utils = "^0.41.1"
psycopg2-binary = "^2.9.7"
pygments = "^2.16.1"
markupsafe = "^2.1.3"
requests = "^2.31.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.group.dev.dependencies]
flake8 = "^6.1.0"
black = "^23.7.0"
isort = "^5.12.0"
mypy = "^1.5.1"
pyupgrade = "^3.10.1"
types-requests = "^2.31.0.2"
[tool.isort]
profile = "black"
combine_as_imports = true
skip_gitignore = true
py_version = 310
# https://github.com/tiangolo/sqlmodel/blob/main/pyproject.toml
[tool.mypy]
python_version = "3.10"
# --strict
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
strict_equality = true
plugins = [
"pydantic.mypy",
]
ignore_missing_imports = false
# --strict end
exclude = [
"tests/"
]
[[tool.mypy.overrides]]
module = [
"sqlalchemy_utils",
"nltk",
"pandas",
"schedule",
"uvicorn",
]
ignore_missing_imports = true
[tool.black]
line-length = 120
target-version = ['py310']
preview = true
exclude = '''
/(
.git
| .venv
| notebooks
)/
'''