File: ruff.toml

package info (click to toggle)
pyvesync 3.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,832 kB
  • sloc: python: 16,169; makefile: 3
file content (87 lines) | stat: -rw-r--r-- 2,018 bytes parent folder | download
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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 = [
  "COM812",  # Missing trailing comma - IGNORE
  "TRY003",  # Avoid specifying long messages outside the exception class
  "EM101",   # Exception must not use a string literal, assign to variable first
  "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
  "FBT002",  # boolean-default-value-positional-argument - IGNORE
  "INP001", # Implicit Namespace error  - IGNORE
  "TC003",  # Bug in TYPE_CHECKING recommendation for dataclasses - IGNORE
  "D102",  # Missing docstring in public method - HANDLED BY flake8-docstrings
  "EXE002", # Use of exec - IGNORE
  "DTZ005",  # Use of datetime.now() without tz - IGNORE
  # "Q000", # Quotes
  # "ERA001", # Commented out code


]
# Todo: Add exception classes EM102, BLE001, EM101
# Todo: Fix import sorting issue I001
unfixable = ["B"]

[lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"

[lint.per-file-ignores]
"vesync.py" = ["F403"]
"**/models/*" = ["N804", "N803", "ANN401", "N802", "N815"]
"vesyncbulb.py" = ["PLR2004"]
"**/errors.py" = ["S105"]
"vesynchome.py" = ["PERF203", "BLE001"]
"testing_scripts/device_configurations.py" = ["T201"]

[lint.pep8-naming]
extend-ignore-names = ["displayJSON"]

[lint.pydocstyle]
convention = "google"

[lint.pylint]
max-public-methods = 30
max-args = 6

[format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "native"