-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpyproject.toml
More file actions
34 lines (32 loc) · 1.04 KB
/
Copy pathpyproject.toml
File metadata and controls
34 lines (32 loc) · 1.04 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
[tool.ruff]
required-version = ">=0.15.17"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D", # docstrings
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PL", # pylint
"RUF", # ruff-specific
"SIM", # flake8-simplify
"UP", # pyupgrade
]
ignore = [
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"D406", # Section name should end with a newline
"D407", # Section name underlining
"E501", # line too long
"PLR0912", # Too many branches
"PLR0913", # Too many arguments
"PLR0915", # Too many statements
"PLR2004", # Magic value in comparison
"N815", # Variable in class scope should not be mixedCase
"RUF012", # Mutable class attributes should be annotated with typing.ClassVar
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = ["custom_components.xiaomi_miio_cooker"]