Skip to content

Commit a0996d9

Browse files
committed
address review feedback
1 parent 3db62e5 commit a0996d9

File tree

2 files changed

+22
-41
lines changed

2 files changed

+22
-41
lines changed

.pre-commit-config.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ repos:
8181
always_run: true
8282
args:
8383
- --branch=main
84-
- id: prettier
85-
name: 💄 Ensuring files are prettier
86-
language: system
87-
types: [yaml, json, markdown]
88-
entry: npm run prettier
89-
pass_filenames: false
9084
- id: pylint
9185
name: 🌟 Starring code with pylint
9286
language: system

pyproject.toml

+22-35
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
[build-system]
2-
requires = ["setuptools>=62.3"]
32
build-backend = "setuptools.build_meta"
3+
requires = ["setuptools>=62.3"]
44

55
[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"
136
authors = [
14-
{name = "The Home Assistant Authors", email = "hello@home-assistant.io"}
7+
{name = "The Home Assistant Authors", email = "hello@home-assistant.io"},
158
]
169
classifiers = [
1710
"Development Status :: 3 - Alpha",
1811
"Intended Audience :: Developers",
1912
"Environment :: Console",
2013
"Programming Language :: Python :: 3.10",
2114
"Programming Language :: Python :: 3.11",
15+
"Programming Language :: Python :: 3.12",
2216
"Topic :: Home Automation",
2317
]
2418
dependencies = [
@@ -28,14 +22,21 @@ dependencies = [
2822
"coloredlogs",
2923
"dacite",
3024
"orjson",
31-
"home-assistant-chip-clusters==2024.1.0"
25+
"home-assistant-chip-clusters==2024.1.0",
3226
]
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"
3334

3435
[project.optional-dependencies]
3536
server = [
3637
"home-assistant-chip-core==2024.1.0",
3738
"cryptography==42.0.2",
38-
"zeroconf==0.131.0"
39+
"zeroconf==0.131.0",
3940
]
4041
test = [
4142
"black==23.12.1",
@@ -50,16 +51,16 @@ test = [
5051
"pytest==7.4.4",
5152
"pytest-aiohttp==1.0.5",
5253
"ruff==0.2.1",
53-
"safety==3.0.1"
54+
"safety==3.0.1",
5455
]
5556

5657
[project.scripts]
5758
matter-server = "matter_server.server.__main__:main"
5859

5960
[tool.setuptools]
60-
platforms = ["any"]
61-
zip-safe = false
6261
include-package-data = true
62+
platforms = ["any"]
63+
zip-safe = false
6364

6465
[tool.setuptools.package-data]
6566
matter_server = ["py.typed"]
@@ -68,35 +69,31 @@ matter_server = ["py.typed"]
6869
include = ["matter_server*"]
6970

7071
[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
8172
check_untyped_defs = true
8273
disallow_any_generics = true
8374
disallow_incomplete_defs = true
8475
disallow_subclassing_any = true
8576
disallow_untyped_calls = true
8677
disallow_untyped_decorators = true
8778
disallow_untyped_defs = true
79+
follow_imports = "normal"
80+
ignore_missing_imports = true
8881
no_implicit_optional = true
8982
no_implicit_reexport = true
83+
platform = "linux"
84+
python_version = "3.11"
9085
strict_optional = true
9186
warn_incomplete_stub = true
9287
warn_no_return = true
9388
warn_redundant_casts = true
9489
warn_return_any = true
90+
warn_unreachable = true
9591
warn_unused_configs = true
9692
warn_unused_ignores = true
9793

9894
[tool.pylint.MASTER]
9995
extension-pkg-whitelist = [
96+
"chip",
10097
"orjson",
10198
]
10299
ignore = [
@@ -106,14 +103,6 @@ ignore = [
106103
[tool.pylint.BASIC]
107104
good-names = [
108105
"_",
109-
"ex",
110-
"fp",
111-
"i",
112-
"id",
113-
"j",
114-
"k",
115-
"on",
116-
"Run",
117106
"T",
118107
]
119108

@@ -145,9 +134,7 @@ ignore = [
145134
"D213", # Conflicts with other rules
146135
"D417", # False positives in some occasions
147136
"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
151138
"COM812",
152139
"ISC001",
153140
]

0 commit comments

Comments
 (0)