-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy path.ruff.toml
More file actions
36 lines (30 loc) · 923 Bytes
/
.ruff.toml
File metadata and controls
36 lines (30 loc) · 923 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
# The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml
target-version = "py313"
[lint]
select = [
"ALL",
]
ignore = [
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ANN001",
"ANN201",
"ANN202",
"D203", # no-blank-line-before-class (incompatible with formatter)
"D212", # multi-line-summary-first-line (incompatible with formatter)
"COM812", # incompatible with formatter
"ISC001", # incompatible with formatter
"E501", # Line length is not important
"EM101",
"TRY003", # Allow exception messages to be used directly
"ERA001", # Commented out code is allowed for examples
"T201", # Prints are allowed in examples
"PLR0913",
"FBT002",
"N999",
]
[lint.flake8-pytest-style]
fixture-parentheses = false
[lint.pyupgrade]
keep-runtime-typing = true
[lint.mccabe]
max-complexity = 25