-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (91 loc) · 2.93 KB
/
Copy pathpyproject.toml
File metadata and controls
103 lines (91 loc) · 2.93 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
91
92
93
94
95
96
97
98
99
100
101
102
103
[project]
name = "majordom-matter"
version = "0.1.4"
description = "Matter integration for MajorDom — bridges Matter devices into the MajorDom language."
authors = [{ name = "Mark Parker", email = "mark@parker-programs.com" }]
readme = "README.md"
license = "LicenseRef-PolyForm-Noncommercial-1.0.0"
license-files = ["LICENSE"]
keywords = ["majordom", "matter", "thread", "smart-home", "home-automation", "iot", "integration", "csa", "connectedhomeip"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Home Automation",
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
]
requires-python = ">=3.12,<3.14"
dependencies = [
"majordom-integration-sdk (>=0.1.6,<1.0)",
"python-matter-server (>=8.1.2,<9.0.0)",
"home-assistant-chip-core (>=2025.7.0)",
"home-assistant-chip-clusters (>=2025.7.0)",
]
[project.urls]
Homepage = "https://majordom.io"
Documentation = "https://docs.majordom.io/device-integration"
Repository = "https://github.com/MajorDom-Systems/integration-matter"
Issues = "https://github.com/MajorDom-Systems/integration-matter/issues"
"Commercial licensing" = "https://parker-industries.org/partnership"
[dependency-groups]
dev = [
"poethepoet (>=0.36.0,<1.0.0)",
"ty", "ruff", "pip-audit",
"pytest", "pytest-asyncio", "pytest-cov", "pytest-timeout", "pytest-repeat",
"pytest-benchmark", "pytest-profiling", "pytest-resource-usage", "coverage",
"pytest-rerunfailures",
"pympler", "psutil", "faker",
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
requires-poetry = ">=2.0"
packages = [{ include = "majordom_matter" }]
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = ["."]
filterwarnings = ["once"]
markers = ["flaky: retried via pytest-rerunfailures (matter coverage tests are flaky under emulation load)"]
[tool.coverage.run]
omit = ["tests/*"]
[tool.ruff]
line-length = 120
indent-width = 4
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I"]
fixable = ["ALL"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["E402"]
[tool.poe.tasks.install]
shell = """
poetry install
echo '#!/bin/sh\npoetry run poe check' > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
echo "Pre-commit hook installed."
"""
[tool.poe.tasks.check]
shell = """
code=0
echo "\nRunning ruff lint:"
poetry run ruff check --fix || code=1
echo "\nRunning ruff format:"
poetry run ruff format || code=1
echo "\nRunning ty:"
poetry run ty check || code=1
echo "\nRunning pytest:"
poetry run pytest --cov=majordom_matter --cov-report=xml || code=1
echo "\nRunning poetry build:"
poetry build || code=1
echo "\nRunning poetry check:"
poetry check || code=1
${ci:+git diff --exit-code}
exit $code
"""
args = [{ name = "ci", type = "boolean" }]