-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
168 lines (149 loc) · 4.61 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[tool.poetry]
name = "lab_gen"
version = "0.2.0"
description = "DVLA Emerging Tech Lab Generative AI project"
authors = []
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = "^2.9.2"
pydantic-settings = "^2.5.2"
fastapi = "^0.115.2"
uvicorn = { version = "^0.32.0", extras = ["standard"] }
opentelemetry-api = "^1.27.0"
opentelemetry-sdk = "^1.27.0"
opentelemetry-exporter-otlp = "^1.27.0"
opentelemetry-instrumentation = "^0.48b0"
opentelemetry-instrumentation-fastapi = "^0.48b0"
opentelemetry-instrumentation-logging = "^0.48b0"
ujson = "^5.8.0"
openai = "^1.35.10"
python-multipart = "^0.0.9"
python-jose = {version = "^3.3.0", extras = ["cryptography"]}
azure-appconfiguration = "^1.7.1"
slowapi = "^0.1.8"
azure-monitor-opentelemetry = "^1.6.2"
tiktoken = "^0.8.0"
langchain-core = "^0.3.10"
langchain-aws = "^0.2.2"
langchain-anthropic = "^0.2.3"
langchain-openai = "^0.2.2"
langchain-google-vertexai = "^2.0.5"
langchain-community = "^0.3.2"
langchain-mistralai = "^0.2.0"
boto3 = "^1.35.41"
anthropic = "^0.36.1"
loguru = "^0.7.2"
azure-cosmos = "^4.5.1"
huggingface-hub = "^0.24.6"
transformers = "^4.44.2"
langsmith = "^0.1.135"
langfuse = "^2.52.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.test]
optional = true
[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
ruff = "^0.6.1"
mypy = "^1.1.1"
isort = "^5.11.4"
pre-commit = "^4.0.1"
autoflake = "^2.2.1"
devtools = "^0.12.2"
mysql-connector-python = "9.0.0"
python-semantic-release = "^9.9.0"
[tool.poetry.group.test.dependencies]
pytest = "^8.2.2"
pytest-env = "^1.1.3"
pytest-cov = "^5.0.0"
pytest-azurepipelines = "^1.0.5"
anyio = "^4.0.0"
httpx = "^0.27.2"
textstat = "^0.7.4"
nltk = "^3.8.1"
[tool.isort]
line_length=120
profile = "black"
multi_line_output = 3
src_paths = ["lab_gen",]
[tool.mypy]
strict = true
ignore_missing_imports = true
allow_subclassing_any = true
allow_untyped_calls = true
pretty = true
show_error_codes = true
implicit_reexport = true
allow_untyped_decorators = true
warn_unused_ignores = false
warn_return_any = false
namespace_packages = true
[tool.black]
line-length = 120
target-version = ["py310", "py311"]
preview = true
color = true
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = [
"ANN101", # pydocstyle - Missing type annotation for `self` in method
"D100", # pydocstyle - missing docstring in public module
"D104", # pydocstyle - missing docstring in public package
"D107", # pydocstyle - missing docstring in `__init__`
"D203", # one-blank-line-before-class conflicts with D211
"D212", # multi-line-summary-first-line conflicts with D213
"PT001", # no need to removing unnecessary parentheses
"PT023", # no need to removing unnecessary parentheses
]
line-length = 120
target-version = "py311"
[tool.ruff.lint.per-file-ignores]
"lab_gen/tests/*/*.py" = ["S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
case-sensitive = true
lines-between-types = 1
lines-after-imports = 2
[tool.pytest.ini_options]
testpaths = ["lab_gen/tests/unit"]
addopts = "-ra --cov --cov-report=xml"
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore:.*unclosed.*:ResourceWarning",
]
env = [
"LAB_GEN_ENVIRONMENT=pytest",
"AZURE_APP_API_KEY=pytest_key",
"R:AZURE_MODELS=[{\"provider\": \"AZURE\",\"variant\": \"GENERAL\",\"family\": \"GPT\",\"identifier\": \"gpt-35-1106\",\"description\": \"OpenAI GPT-3.5 Turbo powered\", \"location\":\"UK\",\"config\": {\"AZURE_OPENAI_API_KEY\": \"ef1\", \"AZURE_OPENAI_ENDPOINT\": \"test-openai-service.openai.azure.com\",\"AZURE_OPENAI_API_VERSION\": \"2023-07-01-preview\"}}, {\"provider\": \"BEDROCK\",\"variant\": \"ADVANCED\",\"family\": \"CLAUDE\",\"identifier\": \"anthropic.claude-instant-v1\",\"description\": \"anthropic.claude-instant\", \"location\": \"Frankfurt\",\"config\": {\"AWS_REGION\": \"eu-central-1\",\"AWS_ACCESS_KEY_ID\": \"IMVZ111111\",\"AWS_SECRET_ACCESS_KEY\": \"3cSofg111111\"}}]"
]
[tool.coverage.report]
show_missing = true
skip_covered = true
omit = ["**/__init__.py", "**/tests/*", "*/conftest.py"]
exclude_lines = [
'raise',
]
[tool.bandit]
exclude_dirs = ["tests", "dist"]
#tests = ["B201", "B301"]
#skips = ["B101", "B601"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.semantic_release]
version_toml = [
"pyproject.toml:tool.poetry.version",
]
remote.domain = "https://dev.azure.com/"
changelog.template_dir = "release_templates"
[tool.semantic_release.branches.main]
match = "main"
prerelease = false
[tool.semantic_release.branches."New Features"]
match = "feature.\\w+"
prerelease = true
prerelease_token = "alpha"