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.
This commit is contained in:
Predrag Gruevski 2023-10-31 16:52:25 -04:00 committed by GitHub
parent 9a10b2b047
commit e8b99364b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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