[build-system] requires = ["pdm-backend"] build-backend = "pdm.backend" [project] authors = [] license = { text = "MIT" } requires-python = ">=3.9" dependencies = [ "ollama>=0.4.8,<1.0.0", "langchain-core<1.0.0,>=0.3.60", ] name = "langchain-ollama" version = "0.3.3" description = "An integration package connecting Ollama and LangChain" readme = "README.md" [project.urls] "Source Code" = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/ollama" "Release Notes" = "https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain-ollama%3D%3D0%22&expanded=true" repository = "https://github.com/langchain-ai/langchain" [dependency-groups] test = [ "pytest<8.0.0,>=7.4.3", "pytest-asyncio<1.0.0,>=0.23.2", "syrupy<5.0.0,>=4.0.2", "pytest-socket<1.0.0,>=0.7.0", "pytest-watcher<1.0.0,>=0.3.4", "langchain-core", "langchain-tests", ] codespell = ["codespell<3.0.0,>=2.2.6"] test_integration = [] lint = ["ruff<1.0.0,>=0.1.8"] dev = ["langchain-core"] typing = ["mypy<2.0.0,>=1.7.1", "langchain-core"] [tool.uv.sources] langchain-core = { path = "../../core", editable = true } langchain-tests = { path = "../../standard-tests", editable = true } [tool.mypy] disallow_untyped_defs = "True" [tool.ruff] target-version = "py39" [tool.ruff.lint] select = [ "E", # pycodestyle "F", # pyflakes "I", # isort "T201", # print "D", # pydocstyle "UP", # pyupgrade ] ignore = [ "UP007", ] [tool.ruff.lint.pydocstyle] convention = "google" [tool.ruff.lint.per-file-ignores] "tests/**" = ["D"] # ignore docstring checks for tests [tool.coverage.run] omit = ["tests/*"] [tool.pytest.ini_options] addopts = "--snapshot-warn-unused --strict-markers --strict-config --durations=5" markers = [ "compile: mark placeholder test used to compile integration tests without running them", ] asyncio_mode = "auto"