-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy path.ruff.toml
47 lines (40 loc) · 1.04 KB
/
.ruff.toml
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
# The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml
target-version = "py312"
[lint]
select = ["ALL"]
ignore = [
"ARG001", # "unused-argument"
"ARG004",
"ANN101", # Missing type annotation for `self` in method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"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
# Temporary exceptions for Ruff implementation
"PERF401", # manual-list-comprehension
"EXE002",
"PLR0912",
"DTZ005",
"PLR2004",
"E722",
"F821",
"E501",
"PLR0915",
"FBT002",
"PLR0913",
"ANN001",
"SIM102",
"S105",
"ARG002",
"BLE001",
"PERF402",
"S101",
"ANN201",
]
[lint.flake8-pytest-style]
fixture-parentheses = false
[lint.pyupgrade]
keep-runtime-typing = true
[lint.mccabe]
max-complexity = 25