-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
77 lines (68 loc) · 1.79 KB
/
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
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
[tool.poetry]
name = "tarifa_20td"
version = "2.0"
description = "Componente para Home Assisant para usuarios con Tarifas 2.0 y 3.0 TD"
authors = ["Miguel Ángel López <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/miguelangellv/tarifa_20td"
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
homeassistant = ">=2024.2.0"
tariff-td = ">=1.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "3.6.2"
pre-commit-hooks = "4.5.0"
pylint = "3.1.0"
ruff = "0.3.4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
src = ["custom_components/tarifa_20td"]
[tool.ruff.lint]
ignore = [
"ANN101", # Self... explanatory
"ANN401", # Opiniated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"TID252", # Relative imports
"RUF012", # Just broken
# Formatter conflicts
"COM812",
"COM819",
"D206",
"E501",
"ISC001",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
]
select = ["ALL"]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"homeassistant.helpers.area_registry" = "ar"
"homeassistant.helpers.config_validation" = "cv"
"homeassistant.helpers.device_registry" = "dr"
"homeassistant.helpers.entity_registry" = "er"
"homeassistant.helpers.issue_registry" = "ir"
voluptuous = "vol"
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = [
"homeassistant",
]
combine-as-imports = true
[tool.pylint."MESSAGES CONTROL"]
# Reasons disabled:
# format - handled by ruff
# duplicate-code - unavoidable
# used-before-assignment - false positives with TYPE_CHECKING structures
disable = [
"abstract-method",
"duplicate-code",
"format",
"unexpected-keyword-arg",
"used-before-assignment",
]