-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (68 loc) · 1.7 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (68 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tool.pylint.MAIN]
py-version = "3.12"
persistent = false
[tool.pylint.REPORTS]
score = false
[tool.pylint."MESSAGES CONTROL"]
# Mirrors ESPHome's pyproject.toml
disable = [
"format",
"missing-docstring",
"fixme",
"unused-argument",
"global-statement",
"too-few-public-methods",
"too-many-lines",
"too-many-locals",
"too-many-ancestors",
"too-many-branches",
"too-many-statements",
"too-many-arguments",
"too-many-positional-arguments",
"too-many-return-statements",
"too-many-instance-attributes",
"duplicate-code",
"invalid-name",
"cyclic-import",
"redefined-builtin",
"undefined-loop-variable",
"useless-object-inheritance",
"stop-iteration-return",
"import-outside-toplevel",
# Broken
"unsupported-membership-test",
"unsubscriptable-object",
]
[tool.pylint.FORMAT]
expected-line-ending-format = "LF"
[tool.ruff]
required-version = ">=0.5.5"
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes/autoflake
"FURB", # refurb
"I", # isort
"PERF", # performance
"PL", # pylint
"SIM", # flake8-simplify
"RET", # flake8-ret
"UP", # pyupgrade
]
ignore = [
"E501", # line too long
"PLC0415", # `import` should be at the top-level of a file
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
"PLW1641", # Object does not implement `__hash__` method
"PLR2004", # Magic value used in comparison
"PLW2901", # Outer variable overwritten by inner target
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = ["components"]
combine-as-imports = true
split-on-trailing-comma = false