Install and use ruff format instead of black for code formatting. (#12585)

Best to review one commit at a time, since two of the commits are 100%
autogenerated changes from running `ruff format`:
- Install and use `ruff format` instead of black for code formatting.
- Output of `ruff format .` in the `langchain` package.
- Use `ruff format` in experimental package.
- Format changes in experimental package by `ruff format`.
- Manual formatting fixes to make `ruff .` pass.
This commit is contained in:
Predrag Gruevski
2023-10-31 10:53:12 -04:00
committed by GitHub
parent bfd719f9d8
commit f94e24dfd7
61 changed files with 246 additions and 399 deletions

View File

@@ -29,9 +29,7 @@ sphinx-copybutton = "^0.5.1"
nbdoc = "^0.0.82"
[tool.poetry.group.lint.dependencies]
ruff = "^0.1"
black = "^23.10.0"
ruff = "^0.1.3"
[tool.poetry.group.codespell.dependencies]
codespell = "^2.2.0"