2023-07-21 19:37:21 +00:00
|
|
|
[tool.poetry]
|
|
|
|
name = "langchain-monorepo"
|
|
|
|
version = "0.0.1"
|
|
|
|
description = "LangChain mono-repo"
|
|
|
|
authors = []
|
|
|
|
license = "MIT"
|
|
|
|
readme = "README.md"
|
2023-08-04 14:31:39 +00:00
|
|
|
repository = "https://www.github.com/langchain-ai/langchain"
|
2023-07-21 19:37:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
python = ">=3.8.1,<4.0"
|
2024-03-25 07:11:23 +00:00
|
|
|
black = "^24.2.0"
|
2023-07-21 19:37:21 +00:00
|
|
|
|
|
|
|
[tool.poetry.group.docs.dependencies]
|
|
|
|
langchain = { path = "libs/langchain/", develop = true }
|
|
|
|
autodoc_pydantic = "^1.8.0"
|
|
|
|
myst_parser = "^0.18.1"
|
|
|
|
nbsphinx = "^0.8.9"
|
|
|
|
sphinx = "^4.5.0"
|
|
|
|
sphinx-autobuild = "^2021.3.14"
|
|
|
|
sphinx_book_theme = "^0.3.3"
|
|
|
|
sphinx_rtd_theme = "^1.0.0"
|
|
|
|
sphinx-typlog-theme = "^0.8.0"
|
|
|
|
sphinx-panels = "^0.6.0"
|
|
|
|
toml = "^0.10.2"
|
|
|
|
myst-nb = "^0.17.1"
|
|
|
|
linkchecker = "^10.2.1"
|
|
|
|
sphinx-copybutton = "^0.5.1"
|
|
|
|
nbdoc = "^0.0.82"
|
|
|
|
|
2023-10-29 22:50:09 +00:00
|
|
|
[tool.poetry.group.lint.dependencies]
|
2024-04-30 19:06:42 +00:00
|
|
|
ruff = "^0.4.0"
|
2023-11-29 01:27:37 +00:00
|
|
|
langchain-core = { path = "libs/core/", develop = true }
|
2024-03-01 02:33:21 +00:00
|
|
|
langchain-text-splitters = { path = "libs/text-splitters", develop = true }
|
2023-12-11 21:53:30 +00:00
|
|
|
langchain-community = { path = "libs/community/", develop = true }
|
2023-11-29 01:27:37 +00:00
|
|
|
langchain = { path = "libs/langchain/", develop = true }
|
|
|
|
langchain-experimental = { path = "libs/experimental/", develop = true }
|
2024-01-16 18:41:14 +00:00
|
|
|
langchain-openai = { path = "libs/partners/openai", develop = true }
|
2023-07-21 19:37:21 +00:00
|
|
|
|
2023-07-12 20:20:08 +00:00
|
|
|
[tool.poetry.group.codespell.dependencies]
|
|
|
|
codespell = "^2.2.0"
|
|
|
|
|
|
|
|
|
2023-10-29 23:15:18 +00:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
2023-11-29 01:27:37 +00:00
|
|
|
langchain-core = { path = "libs/core/", develop = true }
|
2024-03-01 02:33:21 +00:00
|
|
|
langchain-text-splitters = { path = "libs/text-splitters", develop = true }
|
2023-12-11 21:53:30 +00:00
|
|
|
langchain-community = { path = "libs/community/", develop = true }
|
2023-11-29 01:27:37 +00:00
|
|
|
langchain = { path = "libs/langchain/", develop = true }
|
|
|
|
langchain-experimental = { path = "libs/experimental/", develop = true }
|
2024-01-16 18:41:14 +00:00
|
|
|
langchain-openai = { path = "libs/partners/openai", develop = true }
|
2024-02-23 20:45:47 +00:00
|
|
|
ipykernel = "^6.29.2"
|
2023-10-29 23:15:18 +00:00
|
|
|
|
2024-06-12 20:31:36 +00:00
|
|
|
# Support Python 3.8 and 3.12+.
|
|
|
|
# Can be removed once the numpy version is fixed in langchain-community.
|
|
|
|
numpy = [
|
|
|
|
{version = "^1.24.0", python = "<3.12"},
|
|
|
|
{version = "^1.26.0", python = ">=3.12"}
|
|
|
|
]
|
|
|
|
|
2023-10-29 23:15:18 +00:00
|
|
|
[tool.poetry.group.test.dependencies]
|
|
|
|
|
infra: install integration deps for test linting (#16963)
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is
whichever of langchain, community, core, experimental, etc. is being
modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR
gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before
submitting. Run `make format`, `make lint` and `make test` from the root
of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run
tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of
@baskaryan, @eyurtsev, @hwchase17.
-->
2024-02-02 23:59:10 +00:00
|
|
|
[tool.poetry.group.test_integration.dependencies]
|
2023-10-29 23:15:18 +00:00
|
|
|
|
|
|
|
[tool.poetry.group.typing.dependencies]
|
|
|
|
|
2023-07-12 20:20:08 +00:00
|
|
|
[tool.codespell]
|
2024-01-29 20:25:53 +00:00
|
|
|
skip = '.git,*.pdf,*.svg,*.pdf,*.yaml,*.ipynb,poetry.lock,*.min.js,*.css,package-lock.json,example_data,_dist,examples,templates,*.trig'
|
2023-07-12 20:20:08 +00:00
|
|
|
# Ignore latin etc
|
|
|
|
ignore-regex = '.*(Stati Uniti|Tense=Pres).*'
|
|
|
|
# whats is a typo but used frequently in queries so kept as is
|
|
|
|
# aapply - async apply
|
|
|
|
# unsecure - typo but part of API, decided to not bother for now
|
2024-06-24 20:15:11 +00:00
|
|
|
ignore-words-list = 'momento,collison,ned,foor,reworkd,parth,whats,aapply,mysogyny,unsecure,damon,crate,aadd,symbl,precesses,accademia,nin,cann'
|
2023-11-14 20:58:22 +00:00
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
extend-include = ["*.ipynb"]
|
2023-12-02 00:13:31 +00:00
|
|
|
extend-exclude = [
|
|
|
|
"docs/docs/expression_language/why.ipynb" # TODO: look into why linter errors
|
|
|
|
]
|
2023-11-14 20:58:22 +00:00
|
|
|
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
|
"**/{cookbook,docs}/*" = [
|
|
|
|
"E402", # allow imports to appear anywhere in docs
|
|
|
|
"F401", # allow "imported but unused" example code
|
|
|
|
"F811", # allow re-importing the same module, so that cells can stay independent
|
|
|
|
"F841", # allow assignments to variables that are never read -- it's example code
|
|
|
|
]
|
|
|
|
|
|
|
|
# These files were failing the listed rules at the time ruff was adopted for notebooks.
|
|
|
|
# Don't require them to change at once, though we should look into them eventually.
|
|
|
|
"cookbook/gymnasium_agent_simulation.ipynb" = ["F821"]
|
|
|
|
"docs/docs/integrations/document_loaders/tensorflow_datasets.ipynb" = ["F821"]
|
2023-12-07 23:47:48 +00:00
|
|
|
|