Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (79 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (79 loc) · 2.33 KB
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
[build-system]
requires = ["setuptools>=84.0.0", "setuptools_scm[toml]>=10.2.1"]
build-backend = "setuptools.build_meta"
[project]
name = "integration-envoystream"
dynamic = ["version"]
description = "Home Assistant custom component for EnvoyStream"
readme = "README.md"
requires-python = ">=3.14.2"
license = "GPL-3.0-or-later"
authors = [
{name = "PoppyPop", email = "skytep@gmail.com"}
]
keywords = ["envoystream", "async", "api", "home-automation"]
dependencies = [
"aiohttp>=3.14.3",
"colorlog>=6.12.0",
"homeassistant>=2026.8.2",
"pyjwt>=2.12.1",
]
[project.urls]
Homepage = "https://github.com/PoppyPop/integration_envoystream"
Repository = "https://github.com/PoppyPop/integration_envoystream"
Issues = "https://github.com/PoppyPop/integration_envoystream/issues"
"Bug Tracker" = "https://github.com/PoppyPop/integration_envoystream/issues"
[tool.setuptools]
package-dir = {"" = "custom_components"}
[tool.setuptools_scm]
[tool.setuptools.packages.find]
where = ["custom_components"]
include = ["integration_envoystream"]
namespaces = false
# Ruff configuration
[tool.ruff]
line-length = 100
src = ["custom_components", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"ARG001", # allow unused arguments
"ARG002", # allow unused arguments
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # imported but unused
"tests/**/*.py" = ["ARG", "S101"] # pytest uses assert
[tool.pyright]
include = ["custom_components"]
exclude = ["**/__pycache__", "**/.*", "**/node_modules", ".git", ".venv", "htmlcov", "tests", "examples"]
pythonVersion = "3.13"
venvPath = "."
venv = ".venv"
typeCheckingMode = "strict"
reportMissingTypeStubs = "warning"
[tool.pytest.ini_options]
asyncio_mode = "auto"
[dependency-groups]
dev = [
# Testing
"pytest>=9.0.3",
"pytest-asyncio>=1.4.0",
"pytest-cov>=7.1.0",
"pytest-xdist>=3.3.0",
"pytest-homeassistant-custom-component>=0.13.355",
"pyright>=1.1.411",
"pre-commit>=4.6.2",
"ruff>=0.16.3",
]