-
Notifications
You must be signed in to change notification settings - Fork 91
/
ruff.toml
74 lines (66 loc) · 1.82 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
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
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"test",
"tests",
]
line-length = 90
indent-width = 4
[lint]
select = ["ALL"]
ignore = ["T201", # PRINT statement - IGNORE
"COM812", # Missing trailing comma - IGNORE
"TRY003", # Avoid specifying long messages outside the exception class - TODO: Add exception classes
"TRY301", # raise within try - TODO: Fix this
"BLE001", # Broad Exceptions are not allowed - TODO: Fix this
"EM102", # Exception must not use an f-string literal, assign to variable first - TODO: add exception classes
"I001", # Import sort - TODO: Fix this
"EM101", # Exception must not use a string literal, assign to variable first - TODO: add exception classes
"FBT001", # type hint positional argument - bool is not allowed - IGNORE
"FBT003", # Bool positional argument - IGNORE
"TD002", # Todo error - IGNORE
"TD003", # Todo error - IGNORE
"FIX002", # Fixme error - IGNORE
]
# Todo: Add exception classes EM102, BLE001, EM101
# Todo: Fix import sorting issue I001
unfixable = ["B"]
[lint.per-file-ignores]
"vesync.py" = ["F403"]
"vesyncbulb.py" = ["PLR2004"]
[lint.pep8-naming]
extend-ignore-names = ["displayJSON"]
[lint.pydocstyle]
convention = "google"
[lint.pylint]
max-public-methods = 30
max-args = 6
[format]
quote-style = "preserve"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"