mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
e8b99364b3
Prior to this PR, `ruff` was used only for linting and not for formatting, despite the names of the commands. This PR makes it be used for both linting code and autoformatting it.
58 lines
1.3 KiB
TOML
58 lines
1.3 KiB
TOML
[tool.poetry]
|
|
name = "langchain-cli"
|
|
version = "0.0.10"
|
|
description = "CLI for interacting with LangChain"
|
|
authors = ["Erick Friis <erick@langchain.dev>"]
|
|
readme = "README.md"
|
|
|
|
[tool.poetry.dependencies]
|
|
python = ">=3.8.1,<4.0"
|
|
typer = {extras = ["all"], version = "^0.9.0"}
|
|
tomli = "^2.0.1"
|
|
gitpython = "^3.1.40"
|
|
langserve = {extras = ["all"], version = ">=0.0.16", optional = true}
|
|
fastapi = "^0.104.0"
|
|
uvicorn = "^0.23.2"
|
|
|
|
[tool.poetry.scripts]
|
|
langchain = "langchain_cli.cli:app"
|
|
langchain-cli = "langchain_cli.cli:app"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
poethepoet = "^0.24.1"
|
|
pytest = "^7.4.2"
|
|
pytest-watch = "^4.2.0"
|
|
|
|
[tool.poetry.group.lint.dependencies]
|
|
ruff = "^0.1.3"
|
|
|
|
[tool.poetry.group.test.dependencies]
|
|
|
|
[tool.poetry.group.typing.dependencies]
|
|
|
|
[tool.poetry.extras]
|
|
# For langserve
|
|
serve = ["langserve"]
|
|
|
|
[tool.ruff]
|
|
select = [
|
|
"E", # pycodestyle
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
]
|
|
|
|
[tool.poe.tasks]
|
|
test = "poetry run pytest"
|
|
watch = "poetry run ptw"
|
|
lint = ["_lint", "_check_formatting"]
|
|
format = ["_lint_fix", "_format"]
|
|
|
|
_check_formatting = "poetry run ruff format . --diff"
|
|
_lint = "poetry run ruff ."
|
|
_format = "poetry run ruff format ."
|
|
_lint_fix = "poetry run ruff . --fix"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core"]
|
|
build-backend = "poetry.core.masonry.api"
|