2023-11-28 13:24:06 +08:00
|
|
|
indent-width = 2
|
2023-09-07 03:20:25 +08:00
|
|
|
|
2024-02-02 09:50:20 +08:00
|
|
|
lint.select = [
|
2023-09-07 03:20:25 +08:00
|
|
|
"F",
|
|
|
|
"W6",
|
|
|
|
"E71",
|
|
|
|
"E72",
|
2024-02-02 09:50:20 +08:00
|
|
|
"E112", # no-indented-block
|
|
|
|
"E113", # unexpected-indentation
|
2023-09-07 03:20:25 +08:00
|
|
|
# "E124",
|
2024-02-02 09:50:20 +08:00
|
|
|
"E203", # whitespace-before-punctuation
|
|
|
|
"E272", # multiple-spaces-before-keyword
|
2023-09-07 03:20:25 +08:00
|
|
|
# "E303",
|
|
|
|
# "E304",
|
2024-02-02 09:50:20 +08:00
|
|
|
"E501", # line-too-long
|
2023-09-07 03:20:25 +08:00
|
|
|
# "E502",
|
2024-02-02 09:50:20 +08:00
|
|
|
"E702", # multiple-statements-on-one-line-semicolon
|
|
|
|
"E703", # useless-semicolon
|
|
|
|
"E731", # lambda-assignment
|
|
|
|
"W191", # tab-indentation
|
|
|
|
"W291", # trailing-whitespace
|
|
|
|
"W293", # blank-line-with-whitespace
|
2023-09-07 03:20:25 +08:00
|
|
|
"UP039", # unnecessary-class-parentheses
|
|
|
|
]
|
|
|
|
|
2023-12-13 09:34:47 +08:00
|
|
|
line-length = 150
|
|
|
|
|
2023-09-07 03:20:25 +08:00
|
|
|
exclude = [
|
|
|
|
"disassemblers/",
|
|
|
|
"docs/",
|
|
|
|
"examples/",
|
|
|
|
"extra/",
|
|
|
|
"openpilot/",
|
2024-01-27 04:44:19 +08:00
|
|
|
"tinygrad/runtime/autogen",
|
2023-09-07 03:20:25 +08:00
|
|
|
]
|