-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
109 lines (96 loc) · 2.27 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
[tool.poetry]
name = "signalrgb-homeassistant"
version = "0.6.1"
description = "Home Assistant integration for SignalRGB"
authors = ["Stefanie Jane <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/hyperb1iss/signalrgb-homeassistant"
repository = "https://github.com/hyperb1iss/signalrgb-homeassistant"
documentation = "https://github.com/hyperb1iss/signalrgb-homeassistant"
keywords = ["home-assistant", "signalrgb", "integration"]
classifiers = [
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.12",
]
packages = [{ include = "custom_components" }]
[tool.poetry.dependencies]
python = ">=3.12,<3.13"
homeassistant = ">=2024.6.3"
signalrgb = "0.9.6"
colorama = "^0.4.6"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2"
pytest-cov = "^5.0"
pytest-asyncio = "^0.23.0"
pytest-homeassistant-custom-component = "^0.13"
black = "^24.4"
isort = "^5.12.0"
mypy = "^1.11"
pylint = "^3.2"
pre-commit = "^3.7.0"
ruff = "^0.5"
semver = "^3.0.2"
wcwidth = "^0.2.13"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
norecursedirs = [".git", "venv", ".venv", "dist", "build"]
[tool.coverage.run]
source = ["custom_components.signalrgb"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"pass",
"except ImportError:",
]
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.pylint]
max-line-length = 88
disable = [
"W0212",
"W0621",
]
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "B", "I", "N", "W", "C"]
ignore = ["E501"]