forked from nrfconnect/sdk-connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
44 lines (41 loc) · 989 Bytes
/
pyproject.toml
File metadata and controls
44 lines (41 loc) · 989 Bytes
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
[tool.autopep8]
max_line_length = 132
[tool.isort]
line_length = 132
known_first_party = "matter"
[tool.ruff]
line-length = 132
target-version = "py310"
exclude = [
".environment",
".git",
".github",
".*",
"build",
"out",
"third_party",
"examples/common/QRCode/",
# TODO(#37698)
"docs/development_controllers/matter-repl/*.ipynb",
]
[tool.ruff.lint]
select = [
# Standard errors and warnings
"E", "W", "F",
# Consistent commas
"COM",
# Simplify the code if possible
"C4",
# Ensure that scripts are executable
"EXE",
# Check for common logging issues
"LOG",
# Check for common optimization issues
"SLOT",
]
ignore = [
"COM812", # Do not enforce trailing commas in multi-line collections for now
"LOG015", # Do not enforce non-root loggers in the entire codebase for now
"E501", # Do not report line length issues (formatter should handle this)
"E721", # We use it for good reasons
]