-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathpyproject.toml
136 lines (123 loc) · 2.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
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
125
126
127
128
129
130
131
132
133
134
135
136
[build-system]
requires = ["setuptools~=62.3", "wheel~=0.37.1"]
build-backend = "setuptools.build_meta"
[project]
name = "python-matter-server"
version = "3.3.1"
license = {text = "Apache-2.0"}
description = "Python Matter WebSocket Server"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "The Home Assistant Authors", email = "hello@home-assistant.io"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Environment :: Console",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Home Automation",
]
dependencies = [
"aiohttp",
"aiorun",
"coloredlogs",
"dacite",
"orjson",
"home-assistant-chip-clusters==2023.4.1"
]
[project.optional-dependencies]
server = [
"home-assistant-chip-core==2023.4.1",
"cryptography==40.0.2"
]
test = [
"black==23.3.0",
"flake8==6.0.0",
"flake8-docstrings==1.7.0",
"isort==5.12.0",
"mypy==1.2.0",
"pylint==2.17.2",
"pytest==7.3.1",
"pytest-aiohttp==1.0.4",
"pytest-cov==4.0.0",
]
[project.scripts]
matter-server = "matter_server.server.__main__:main"
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
#disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
mypy_path = "matter_server/"
no_implicit_optional = true
show_error_codes = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"aiorun",
"chip.*",
"coloredlogs",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.setuptools]
platforms = ["any"]
zip-safe = false
include-package-data = true
[tool.setuptools.package-data]
matter_server = ["py.typed"]
[tool.setuptools.packages.find]
include = ["matter_server*"]
[tool.pylint.BASIC]
class-const-naming-style = "any"
good-names = [
"_",
"ev",
"ex",
"fp",
"i",
"id",
"j",
"k",
"Run",
"ip",
]
[tool.pylint."MESSAGES CONTROL"]
# fixme - we are still a work in progress
# too-many-instance-attributes - just because it is unavoidable
# too-few-public-methods - just because it is unavoidable
# too-many-arguments - just because it is unavoidable
disable = [
"fixme",
"too-many-instance-attributes",
"too-few-public-methods",
"too-many-arguments"
]
[tool.isort]
# https://github.com/PyCQA/isort/wiki/isort-Settings
profile = "black"
# will group `import x` and `from x import` of the same module.
force_sort_within_sections = true
src_paths = [
"matter_server/client",
"matter_server/common",
"matter_server/server",
]
known_first_party = [
"matter_server",
"tests",
]
forced_separate = [
"tests",
]
combine_as_imports = true