infra, multiple: Upgrade configuration for Ruff v0.2.0 (#16905)

## Summary

This PR upgrades LangChain's Ruff configuration in preparation for
Ruff's v0.2.0 release. (The changes are compatible with Ruff v0.1.5,
which LangChain uses today.) Specifically, we're now warning when
linter-only options are specified under `[tool.ruff]` instead of
`[tool.ruff.lint]`.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
Charlie Marsh
2024-02-09 17:28:02 -05:00
committed by GitHub
parent 01409add5a
commit 24c0bab57b
19 changed files with 28 additions and 24 deletions

View File

@@ -53,7 +53,7 @@ optional = true
[tool.poetry.group.dev.dependencies]
langchain-core = {path = "../../core", develop = true}
[tool.ruff]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes