1
1
[build-system ]
2
- requires = [" setuptools>=62.3" ]
3
2
build-backend = " setuptools.build_meta"
3
+ requires = [" setuptools>=62.3" ]
4
4
5
5
[project ]
6
- name = " python-matter-server"
7
- # The version is set by GH action on release
8
- version = " 0.0.0"
9
- license = {text = " Apache-2.0" }
10
- description = " Python Matter WebSocket Server"
11
- readme = " README.md"
12
- requires-python = " >=3.10"
13
6
authors = [
14
- {name = " The Home Assistant Authors" , email = " hello@home-assistant.io" }
7
+ {name = " The Home Assistant Authors" , email = " hello@home-assistant.io" },
15
8
]
16
9
classifiers = [
17
10
" Development Status :: 3 - Alpha" ,
18
11
" Intended Audience :: Developers" ,
19
12
" Environment :: Console" ,
20
13
" Programming Language :: Python :: 3.10" ,
21
14
" Programming Language :: Python :: 3.11" ,
15
+ " Programming Language :: Python :: 3.12" ,
22
16
" Topic :: Home Automation" ,
23
17
]
24
18
dependencies = [
@@ -28,14 +22,21 @@ dependencies = [
28
22
" coloredlogs" ,
29
23
" dacite" ,
30
24
" orjson" ,
31
- " home-assistant-chip-clusters==2024.1.0"
25
+ " home-assistant-chip-clusters==2024.1.0" ,
32
26
]
27
+ description = " Python Matter WebSocket Server"
28
+ license = {text = " Apache-2.0" }
29
+ name = " python-matter-server"
30
+ readme = " README.md"
31
+ requires-python = " >=3.10"
32
+ # The version is set by GH action on release!
33
+ version = " 0.0.0"
33
34
34
35
[project .optional-dependencies ]
35
36
server = [
36
37
" home-assistant-chip-core==2024.1.0" ,
37
38
" cryptography==42.0.2" ,
38
- " zeroconf==0.131.0"
39
+ " zeroconf==0.131.0" ,
39
40
]
40
41
test = [
41
42
" black==23.12.1" ,
@@ -50,16 +51,16 @@ test = [
50
51
" pytest==7.4.4" ,
51
52
" pytest-aiohttp==1.0.5" ,
52
53
" ruff==0.2.1" ,
53
- " safety==3.0.1"
54
+ " safety==3.0.1" ,
54
55
]
55
56
56
57
[project .scripts ]
57
58
matter-server = " matter_server.server.__main__:main"
58
59
59
60
[tool .setuptools ]
60
- platforms = [" any" ]
61
- zip-safe = false
62
61
include-package-data = true
62
+ platforms = [" any" ]
63
+ zip-safe = false
63
64
64
65
[tool .setuptools .package-data ]
65
66
matter_server = [" py.typed" ]
@@ -68,35 +69,31 @@ matter_server = ["py.typed"]
68
69
include = [" matter_server*" ]
69
70
70
71
[tool .mypy ]
71
- platform = " linux"
72
- python_version = " 3.11"
73
-
74
- # show error messages from unrelated files
75
- follow_imports = " normal"
76
-
77
- # suppress errors about unsatisfied imports
78
- ignore_missing_imports = true
79
-
80
- # be strict
81
72
check_untyped_defs = true
82
73
disallow_any_generics = true
83
74
disallow_incomplete_defs = true
84
75
disallow_subclassing_any = true
85
76
disallow_untyped_calls = true
86
77
disallow_untyped_decorators = true
87
78
disallow_untyped_defs = true
79
+ follow_imports = " normal"
80
+ ignore_missing_imports = true
88
81
no_implicit_optional = true
89
82
no_implicit_reexport = true
83
+ platform = " linux"
84
+ python_version = " 3.11"
90
85
strict_optional = true
91
86
warn_incomplete_stub = true
92
87
warn_no_return = true
93
88
warn_redundant_casts = true
94
89
warn_return_any = true
90
+ warn_unreachable = true
95
91
warn_unused_configs = true
96
92
warn_unused_ignores = true
97
93
98
94
[tool .pylint .MASTER ]
99
95
extension-pkg-whitelist = [
96
+ " chip" ,
100
97
" orjson" ,
101
98
]
102
99
ignore = [
@@ -106,14 +103,6 @@ ignore = [
106
103
[tool .pylint .BASIC ]
107
104
good-names = [
108
105
" _" ,
109
- " ex" ,
110
- " fp" ,
111
- " i" ,
112
- " id" ,
113
- " j" ,
114
- " k" ,
115
- " on" ,
116
- " Run" ,
117
106
" T" ,
118
107
]
119
108
@@ -145,9 +134,7 @@ ignore = [
145
134
" D213" , # Conflicts with other rules
146
135
" D417" , # False positives in some occasions
147
136
" PLR2004" , # Just annoying, not really useful
148
- " S101" , # assert is often used to satisfy type checking
149
-
150
- # Conflicts with the Ruff formatter
137
+ " S101" , # assert is often used to satisfy type checking # Conflicts with the Ruff formatter
151
138
" COM812" ,
152
139
" ISC001" ,
153
140
]
0 commit comments