forked from dvla/lab-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
148 lines (132 loc) · 4.08 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
[tool.poetry]
name = "lab_gen"
version = "0.1.0"
description = "DVLA Emerging Tech Lab Generative AI project"
authors = []
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = "^2.7.4"
pydantic-settings = "^2.3.3"
fastapi = "^0.111.0"
uvicorn = { version = "^0.30.1", extras = ["standard"] }
opentelemetry-api = "^1.25.0"
opentelemetry-sdk = "^1.25.0"
opentelemetry-exporter-otlp = "^1.25.0"
opentelemetry-instrumentation = "^0.46b0"
opentelemetry-instrumentation-fastapi = "^0.46b0"
opentelemetry-instrumentation-logging = "^0.46b0"
ujson = "^5.8.0"
openai = "^1.35.10"
python-multipart = "^0.0.9"
python-jose = {version = "^3.3.0", extras = ["cryptography"]}
azure-appconfiguration = "^1.5.0"
slowapi = "^0.1.8"
azure-monitor-opentelemetry = "^1.6.0"
tiktoken = "^0.7.0"
langchain-core = "^0.2.21"
langchain-aws = "^0.1.11"
langchain-openai = "^0.1.17"
langchain-google-vertexai = "^1.0.6"
langchain-community = "^0.2.7"
langchain-mistralai = "^0.1.10"
boto3 = "^1.34.21"
anthropic = "^0.30.1"
loguru = "^0.7.2"
azure-cosmos = "^4.5.1"
huggingface-hub = "^0.23.4"
transformers = "^4.37.2"
langsmith = "^0.1.90"
langfuse = "^2.39.2"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.test]
optional = true
[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
ruff = "^0.5.2"
mypy = "^1.1.1"
isort = "^5.11.4"
pre-commit = "^3.0.1"
autoflake = "^2.2.1"
devtools = "^0.12.2"
mysql-connector-python = "9.0.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.25.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
]
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"