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

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.
pull/12619/head^2
Predrag Gruevski 11 months ago committed by GitHub
parent 9a10b2b047
commit e8b99364b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"]

Loading…
Cancel
Save