-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathpyproject.toml
39 lines (33 loc) · 927 Bytes
/
pyproject.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
[project]
name = "xiaomi_bslamp2"
version = "0.0.0-dev"
description = "ESPHome integration for the Xiaomi Mijia Bedside Lamp v2."
requires-python = "==3.12.*"
dependencies = ["ruff"]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]
ignore = [
"SIM102", # Sometimes nested if statements serve readability
"I001", # Current problem in pre-commit (--fix changes nothing, pre-commit reports issue)
"TID252", # Relative imports are required here
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.mccabe]
max-complexity = 10