-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
104 lines (87 loc) · 2.72 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
[tool.poetry]
name = "docugami-langchain"
version = "0.0.22"
description = "Docugami partner package for LangChain"
authors = []
readme = "README.md"
repository = "https://github.com/docugami/docugami-langchain"
license = "MIT"
[tool.poetry.urls]
"Source Code" = "https://github.com/docugami/docugami-langchain/tree/master"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
langchain-core = ">=0.2.1"
langchain-community = ">=0.2.0"
langgraph = ">=0.0.55"
dgml-utils = ">=0.3.3"
wordtodigits = ">=1.0.2"
python-dateutil = ">=2.9.0"
pandas = "*"
pyyaml = ">=6.0.1"
openpyxl = ">=3.1.2"
sqlglot = ">=24.0.0"
tabulate = ">=0.9.0"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = ">=8.1.1"
pytest-mock = ">=3.14.0"
pytest-watcher = ">=0.4.2"
pytest-asyncio = ">=0.23.6"
sentence-transformers = ">=2.7.0"
langchain-openai = ">=0.1.7"
langchain-fireworks = ">=0.1.3"
langchain-huggingface = "^0.0.3"
faiss-cpu = ">=1.8.0"
[tool.poetry.group.codespell]
optional = true
[tool.poetry.group.codespell.dependencies]
codespell = ">=2.2.6"
[tool.poetry.group.test_integration]
optional = true
[tool.poetry.group.test_integration.dependencies]
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
ruff = ">=0.4.1"
[tool.poetry.group.typing.dependencies]
mypy = ">=1.10.0"
types-lxml = ">=2024.4.14"
types-python-dateutil = ">=2.9.0.20240316"
types-pyyaml = ">=6.0.12.20240311"
types-requests = ">=2.31.0.20240406"
types-regex = ">=2024.4.16.20240423"
types-tabulate = ">=0.9.0.20240106"
[tool.ruff]
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
]
line-length = 200
[tool.mypy]
disallow_untyped_defs = true
disable_error_code = "typeddict-item"
[[tool.mypy.overrides]]
module = ["wordtodigits", "pandas", "llama_cpp.*", "langgraph.*", "langchain_fireworks.*", "langchain_openai.*"]
ignore_missing_imports = true
[tool.coverage.run]
omit = ["tests/*"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
# --strict-markers will raise errors on unknown marks.
# https://docs.pytest.org/en/7.1.x/how-to/mark.html#raising-errors-on-unknown-marks
#
# https://docs.pytest.org/en/7.1.x/reference/reference.html
# --strict-config any warnings encountered while parsing the `pytest`
# section of the configuration file raise errors.
addopts = "--strict-markers --strict-config --durations=5"
# Registering custom markers.
# https://docs.pytest.org/en/7.1.x/example/markers.html#registering-markers
markers = [
"requires: mark tests as requiring a specific library",
"asyncio: mark tests as requiring asyncio",
"compile: mark placeholder test used to compile integration tests without running them",
]