Skip to content

The agent engineering platform.

Use `ruff` for both linting and formatting in `langchain-cli`. (#12672)

Predrag Gruevskie8b99364b360
diff --git a/libs/cli/pyproject.toml b/libs/cli/pyproject.toml
index ed3c8c2bbc..9fc827408b 100644
--- a/libs/cli/pyproject.toml
+++ b/libs/cli/pyproject.toml
@@ -44,9 +44,13 @@ select = [
[tool.poe.tasks]
test = "poetry run pytest"
watch = "poetry run ptw"
-lint = "poetry run ruff ."
-format = "poetry run ruff . --fix"
+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"]