2023-10-26 20:55:07 +00:00
|
|
|
[tool.poetry]
|
|
|
|
name = "templates"
|
|
|
|
version = "0.0.0"
|
|
|
|
description = ""
|
|
|
|
authors = []
|
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
python = "^3.10"
|
|
|
|
|
|
|
|
|
2023-10-27 02:44:30 +00:00
|
|
|
# dev, test, lint, typing
|
2024-01-03 21:28:05 +00:00
|
|
|
langchain = ">=0.0.353,<0.2"
|
2023-10-26 20:55:07 +00:00
|
|
|
|
2023-12-07 22:24:58 +00:00
|
|
|
[tool.poetry.group.dev]
|
|
|
|
optional = true
|
|
|
|
|
2023-10-27 02:44:30 +00:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
poethepoet = "^0.24.1"
|
|
|
|
pytest-watch = "^4.2.0"
|
2024-02-06 01:12:12 +00:00
|
|
|
langchain-cli = ">=0.0.21"
|
2023-10-27 02:44:30 +00:00
|
|
|
|
2023-12-07 22:24:58 +00:00
|
|
|
[tool.poetry.group.test]
|
|
|
|
optional = true
|
|
|
|
|
2023-10-27 02:44:30 +00:00
|
|
|
[tool.poetry.group.test.dependencies]
|
|
|
|
pytest = "^7.4.3"
|
2023-10-26 20:55:07 +00:00
|
|
|
|
2023-12-07 22:24:58 +00:00
|
|
|
[tool.poetry.group.lint]
|
|
|
|
optional = true
|
|
|
|
|
2023-10-26 20:55:07 +00:00
|
|
|
[tool.poetry.group.lint.dependencies]
|
2023-12-07 22:24:58 +00:00
|
|
|
poethepoet = "^0.24.1"
|
2023-10-31 21:52:00 +00:00
|
|
|
ruff = "^0.1.3"
|
2023-12-07 22:24:58 +00:00
|
|
|
langchain = { path = "../libs/langchain", develop = true }
|
|
|
|
langchain-core = { path = "../libs/core", develop = true }
|
|
|
|
|
|
|
|
[tool.poetry.group.typing]
|
|
|
|
optional = true
|
2023-10-26 20:55:07 +00:00
|
|
|
|
2023-10-27 02:44:30 +00:00
|
|
|
[tool.poetry.group.typing.dependencies]
|
2023-10-26 20:55:07 +00:00
|
|
|
|
2024-02-09 22:28:02 +00:00
|
|
|
[tool.ruff.lint]
|
2023-10-26 20:55:07 +00:00
|
|
|
select = [
|
|
|
|
"E", # pycodestyle
|
|
|
|
"F", # pyflakes
|
|
|
|
"I", # isort
|
|
|
|
]
|
2023-10-27 02:44:30 +00:00
|
|
|
|
|
|
|
[tool.poe.tasks]
|
|
|
|
test = "poetry run pytest"
|
|
|
|
watch = "poetry run ptw"
|
2023-10-31 21:52:00 +00:00
|
|
|
lint = ["_lint", "_check_formatting"]
|
|
|
|
format = ["_lint_fix", "_format"]
|
2023-10-27 02:44:30 +00:00
|
|
|
|
2023-10-31 21:52:00 +00:00
|
|
|
_check_formatting = "poetry run ruff format . --diff"
|
|
|
|
_lint = "poetry run ruff ."
|
|
|
|
_format = "poetry run ruff format ."
|
|
|
|
_lint_fix = "poetry run ruff . --fix"
|
2023-10-27 02:44:30 +00:00
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
2023-10-31 21:52:00 +00:00
|
|
|
build-backend = "poetry.core.masonry.api"
|