mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
43 lines
831 B
TOML
43 lines
831 B
TOML
# Exclude third-party runtime directory from linting
|
|
exclude = ["third_party/", "enterprise/"]
|
|
|
|
[lint]
|
|
select = [
|
|
"E",
|
|
"W",
|
|
"F",
|
|
"I",
|
|
"Q",
|
|
"B",
|
|
"ASYNC",
|
|
"UP006", # Use `list` instead of `List` for annotations
|
|
"UP007", # Use `X | Y` instead of `Union[X, Y]`
|
|
"UP008", # Use `X | None` instead of `Optional[X]`
|
|
]
|
|
|
|
ignore = [
|
|
"E501",
|
|
"B003",
|
|
"B007",
|
|
"B009",
|
|
"B010",
|
|
"B904",
|
|
"B018",
|
|
# Temporarily ignore ASYNC rules until they can be properly fixed in a separate PR
|
|
"ASYNC110",
|
|
"ASYNC220",
|
|
"ASYNC221",
|
|
"ASYNC230",
|
|
"ASYNC251",
|
|
]
|
|
|
|
[lint.flake8-quotes]
|
|
docstring-quotes = "double"
|
|
inline-quotes = "single"
|
|
|
|
[format]
|
|
quote-style = "single"
|
|
|
|
[lint.flake8-bugbear]
|
|
extend-immutable-calls = ["Depends", "fastapi.Depends", "fastapi.params.Depends"]
|