-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
pyproject.toml
124 lines (113 loc) · 2.76 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[project]
name = "spook"
version = "0.0.0"
license = { text = "MIT License" }
description = "Spook - Your homie"
authors = [{ name = "Franck Nijhof", email = "[email protected]"}]
maintainers = [{ name = "Franck Nijhof", email = "[email protected]"}]
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
]
keywords = [
"automation",
"automations",
"component",
"custom component",
"custom integration",
"ghost",
"hacs-component",
"hacs-integration",
"hacs-repository",
"hacs",
"hass.io",
"hass",
"hassio",
"home assistant",
"home-assistant",
"homeassistant",
"integration",
"powertools",
"spook",
"utils",
]
requires-python = ">=3.11,<3.13"
dependencies = [
"homeassistant>=2024.4.0",
]
[project.urls]
Homepage = "https://spook.boo"
Documentation = "https://spook.boo/about"
Changelog = "https://github.com/frenck/spook/releases"
Support = "https://spook.boo/support"
Issues = "https://github.com/frenck/spook/issues"
Repository = "https://github.com/frenck/spook"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["custom_components/spook"]
[tool.ruff]
src = ["custom_components/spook"]
[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",
]
[tool.rye]
managed = true
dev-dependencies = [
"pre-commit>=3.6.0",
"pre-commit-hooks>=4.5.0",
"pylint>=3.1.0",
"ruff>=0.3.2",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"