-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
73 lines (66 loc) · 1.75 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
[tool.poetry]
name = "modelsmith"
version = "0.6.1"
description = "Get Pydantic models and Python types as LLM responses from Anthropic, Google Vertex AI, and OpenAI models."
authors = ["Christo Olivier <[email protected]>"]
maintainers = ["Christo Olivier <[email protected]>"]
homepage = "https://github.com/christo-olivier/modelsmith"
repository = "https://github.com/christo-olivier/modelsmith"
documentation = "https://christo-olivier.github.io/modelsmith"
keywords = ["anthropic", "openai", "vertexai", "pydantic", "models", "types", "llm"]
license = "MIT"
readme = "README.md"
packages = [{include = "modelsmith", from = "src"}]
[tool.poetry.dependencies]
python = "^3.10"
tenacity = "^8.2.3"
google-cloud-aiplatform = "^1.43.0"
pydantic = "^2.6.4"
jinja2 = "^3.1.3"
openai = "^1.35.7"
anthropic = "^0.30.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1"
python-levenshtein = "^0.25.0"
mypy = "^1.9.0"
python-dotenv = "^1.0.1"
mkdocs = "^1.6.0"
mkdocs-material = "^9.5.29"
mike = "^2.1.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
[tool.mypy]
plugins = ["pydantic.mypy"]
python_version = "3.12"
ignore_missing_imports = true
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = false
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = true
[pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.pytest.ini_options]
markers = [
"sequential: mark test to run sequentially for specific parameters"
]