mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-15 22:44:36 +00:00
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:
@@ -260,15 +260,17 @@ extended_testing = [
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
exclude = [
|
||||
"tests/examples/non-utf8-encoding.py",
|
||||
"tests/integration_tests/examples/non-utf8-encoding.py",
|
||||
]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle
|
||||
"F", # pyflakes
|
||||
"I", # isort
|
||||
]
|
||||
exclude = [
|
||||
"tests/examples/non-utf8-encoding.py",
|
||||
"tests/integration_tests/examples/non-utf8-encoding.py",
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
ignore_missing_imports = "True"
|
||||
|
Reference in New Issue
Block a user