-
Notifications
You must be signed in to change notification settings - Fork 144
/
pyproject.toml
79 lines (71 loc) · 2.65 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "Vizro Team"}
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
dependencies = [
"pandas",
"tabulate",
"openai>=1.0.0",
"langgraph-checkpoint<=1.0.12", # TODO update to pydantic v2 and remove upper bound (https://github.com/langchain-ai/langgraph/issues/1914)
"langchain>=0.1.0, <0.3.0", # TODO update to pydantic v2 and remove upper bound
"langgraph>=0.1.2, <0.2.17", # TODO update to pydantic v2 and remove upper bound (latest version break pydantic v1 compatibility)
"python-dotenv>=1.0.0", # TODO decide env var management to see if we need this
"vizro<=0.1.29", # Limited to current version of vizro, until the pydantic V2 changes of the main repo have been into here
"langchain_openai", # Base dependency, ie minimum model working
"black",
"autoflake"
]
description = "Vizro-AI is a tool for generating data visualizations"
dynamic = ["version"]
license-files = {paths = ["LICENSE.txt"]}
name = "vizro_ai"
readme = "README.md"
requires-python = ">=3.9"
[project.optional-dependencies]
anthropic = ["langchain-anthropic"]
mistral = ["langchain-mistralai>=0.1.13"]
[tool.coverage.paths]
vizro = ["src/vizro_ai"] # omit tests for clarity, although this can be useful to see what test lines DID NOT run
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:"
]
fail_under = 45
show_missing = true
skip_covered = true
[tool.coverage.run]
branch = true
parallel = true
source_pkgs = ["vizro_ai"]
[tool.pytest.ini_options]
filterwarnings = [
"error",
# Ignore until pandas is made compatible with Python 3.12:
"ignore:.*utcfromtimestamp:DeprecationWarning",
# Ignore until pandas 3 is released:
"ignore:(?s).*Pyarrow will become a required dependency of pandas:DeprecationWarning",
# TODO update all LLMChain class and remove this warning
# Ignore LLMchian deprecation warning:
"ignore:.*The class `LLMChain` was deprecated in LangChain 0.1.17",
# Ignore warning for Pydantic v1 API and Python 3.13:
"ignore:Failing to pass a value to the 'type_params' parameter of 'typing.ForwardRef._evaluate' is deprecated:DeprecationWarning"
]
[tool.ruff]
extend = "../pyproject.toml"
src = ["src"]
[tool.ruff.lint.extend-per-file-ignores]
# Ignore print, line length, and import violations in Colab notebooks
"examples/chart_by_vizro_ai.ipynb" = ["T201", "E501"]
"examples/dashboard_by_vizro_ai.ipynb" = ["T201", "E402", "E501"]