mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com> Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
43 lines
816 B
TOML
43 lines
816 B
TOML
# Exclude third-party runtime directory from linting
|
|
exclude = ["third_party/"]
|
|
|
|
[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"]
|