-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (88 loc) · 2.4 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
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
# https://python-poetry.org/docs/pyproject/
# PROJECT
[tool.poetry]
name = "fastapi_autogen_team"
version = "0.1.0"
description = "Autogen team with fastapi with opanapi compatible"
authors = ["lgcorzo <[email protected]>"]
license = "MIT"
readme = "README.md"
keywords = ["mlops", "python", "package", "fastapi"]
packages = [{ include = "fastapi_autogen_team", from = "src" }]
# DEPENDENCIES
[tool.poetry.dependencies]
python = "3.11.*"
fastapi = "^0.115.11"
ag2 = {extras = ["long-context", "openai", "retrievechat"], version = "^0.8.3"}
flaml = {extras = ["automl"], version = "^2.3.4"}
opentelemetry-api = "^1.31.1"
opentelemetry-sdk = "^1.31.1"
opentelemetry-instrumentation-fastapi = "^0.52b1"
opentelemetry-exporter-otlp = "^1.31.1"
opentelemetry-instrumentation = "^0.52b1"
opentelemetry-exporter-otlp-proto-http = "^1.31.1"
apscheduler = "^3.11.0"
starlette = "^0.46.1"
dotenv = "^0.9.9"
uvicorn = "^0.34.0"
[tool.poetry.group.checks.dependencies]
bandit = "^1.7.9"
coverage = "^7.5.4"
mypy = "^1.10.1"
pytest = "^8.2.2"
pytest-cov = "^5.0.0"
pytest-xdist = "^3.6.1"
pandera = { extras = ["mypy"], version = "^0.20.1" }
ruff = "^0.5.0"
pytest-mock = "^3.14.0"
[tool.poetry.group.commits.dependencies]
commitizen = "^3.27.0"
pre-commit = "^3.7.1"
[tool.poetry.group.dev.dependencies]
invoke = "^2.2.0"
[tool.poetry.group.docs.dependencies]
pdoc = "^14.5.1"
[tool.poetry.group.notebooks.dependencies]
ipykernel = "^6.29.4"
nbformat = "^5.10.4"
# CONFIGURATIONS
[tool.bandit]
targets = ["src"]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "poetry"
changelog_start_rev = "v1.0.0"
update_changelog_on_bump = true
[tool.coverage.run]
branch = true
source = ["src"]
omit = ["__main__.py"]
[tool.mypy]
pretty = true
strict = false
python_version = "3.12"
check_untyped_defs = false
ignore_missing_imports = true
disable_error_code = ["return-value"]
plugins = ["pandera.mypy", "pydantic.mypy"]
exclude = ["src/fastapi_autogen_team/__init__.py"]
[tool.pytest.ini_options]
addopts = "--verbosity=2"
pythonpath = ["src"]
[tool.ruff]
fix = true
indent-width = 4
line-length = 120
target-version = "py312"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D100", "D103"]
# SYSTEMS
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"