mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 21:35:08 +00:00
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:
parent
9a10b2b047
commit
e8b99364b3
@ -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…
Reference in New Issue
Block a user