aiomelcloudhome 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,83 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .nox/
42
+ .coverage
43
+ .coverage.*
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ *.cover
48
+ .hypothesis/
49
+ .pytest_cache/
50
+
51
+ # Translations
52
+ *.mo
53
+ *.pot
54
+
55
+ # Environments
56
+ .env
57
+ .venv
58
+ env/
59
+ venv/
60
+ ENV/
61
+ env.bak/
62
+ venv.bak/
63
+
64
+ # mkdocs documentation
65
+ /site
66
+
67
+ # mypy
68
+ .mypy_cache/
69
+
70
+ # Visual Studio Code
71
+ .vscode
72
+
73
+ # ruff
74
+ .ruff_cache
75
+
76
+ # Pyre type checker
77
+ .pyre/
78
+
79
+ setup.py
80
+ .python-version
81
+
82
+ # Examples
83
+ examples/example_dev.py
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Erwin Douna
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,217 @@
1
+ Metadata-Version: 2.4
2
+ Name: aiomelcloudhome
3
+ Version: 0.1.0
4
+ Summary: Asynchronous Python client for the Melcloud Home API
5
+ Project-URL: Homepage, https://github.com/erwindouna/aiomelcloudhome
6
+ Project-URL: Repository, https://github.com/erwindouna/aiomelcloudhome
7
+ Project-URL: Documentation, https://github.com/erwindouna/aiomelcloudhome
8
+ Project-URL: Bug Tracker, https://github.com/erwindouna/aiomelcloudhome/issues
9
+ Project-URL: Changelog, https://github.com/erwindouna/aiomelcloudhome/releases
10
+ Author-email: Erwin Douna <e.douna@gmail.com>
11
+ Maintainer-email: Erwin Douna <e.douna@gmail.com>
12
+ License-Expression: MIT
13
+ License-File: LICENSE
14
+ Keywords: api,async,client,heat-pump,hvac,melcloud,melcloudhome
15
+ Classifier: Framework :: AsyncIO
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Natural Language :: English
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: <4,>=3.11
24
+ Requires-Dist: aiohttp>=3.0.0
25
+ Requires-Dist: pydantic<3,>=2.0
26
+ Requires-Dist: tenacity>=8.0.0
27
+ Requires-Dist: yarl>=1.6.0
28
+ Description-Content-Type: text/markdown
29
+
30
+ # aiomelcloudhome
31
+
32
+ [![GitHub Release][releases-shield]][releases]
33
+ [![Python Versions][python-versions-shield]][pypi]
34
+ ![Project Stage][project-stage-shield]
35
+ ![Project Maintenance][maintenance-shield]
36
+ [![License][license-shield]](LICENSE)
37
+
38
+ [![GitHub Activity][commits-shield]][commits-url]
39
+ [![PyPI Downloads][downloads-shield]][downloads-url]
40
+ [![GitHub Last Commit][last-commit-shield]][commits-url]
41
+ [![Open in Dev Containers][devcontainer-shield]][devcontainer]
42
+
43
+ [![Build Status][build-shield]][build-url]
44
+ [![Typing Status][typing-shield]][typing-url]
45
+ [![Code Coverage][codecov-shield]][codecov-url]
46
+
47
+ Asynchronous Python client for MELCloud Home.
48
+
49
+ ## About
50
+
51
+ aiomelcloudhome is an async client for the MELCloud Home API, focused on:
52
+
53
+ - Fetching account context (buildings and devices)
54
+ - Controlling Air-to-Air units
55
+ - Controlling Air-to-Water units
56
+ - Reading telemetry (energy and actual measurements)
57
+
58
+ The library is under active development and endpoint coverage will keep expanding.
59
+
60
+ ## Installation
61
+
62
+ ~~~bash
63
+ pip install aiomelcloudhome
64
+ ~~~
65
+
66
+ ## Usage
67
+
68
+ ### Authenticate with username and password
69
+
70
+ ~~~python
71
+ import asyncio
72
+
73
+ from aiohttp import ClientSession
74
+
75
+ from aiomelcloudhome import MELCloudHome
76
+
77
+
78
+ async def main() -> None:
79
+ async with ClientSession() as session:
80
+ async with MELCloudHome(
81
+ username="your@email.com",
82
+ password="your_password",
83
+ session=session,
84
+ ) as client:
85
+ context = await client.get_context()
86
+
87
+ for building in context.buildings:
88
+ print(f"Building: {building.name}")
89
+
90
+ for unit in building.air_to_air_units:
91
+ print(f"ATA: {unit.name} (room: {unit.room_temperature} C)")
92
+
93
+ for unit in building.air_to_water_units:
94
+ print(f"ATW: {unit.name} (tank: {unit.tank_water_temperature} C)")
95
+
96
+
97
+ if __name__ == "__main__":
98
+ asyncio.run(main())
99
+ ~~~
100
+
101
+ ### Authenticate with an existing access token
102
+
103
+ ~~~python
104
+ from aiomelcloudhome import MELCloudHome
105
+
106
+
107
+ client = MELCloudHome(access_token="YOUR_ACCESS_TOKEN")
108
+ ~~~
109
+
110
+ ### Control an Air-to-Air unit
111
+
112
+ ~~~python
113
+ from aiomelcloudhome import ATAFanSpeed, ATAOperationMode, MELCloudHome
114
+
115
+
116
+ await client.control_ata_unit(
117
+ "ata-unit-id",
118
+ power=True,
119
+ operation_mode=ATAOperationMode.HEAT,
120
+ set_temperature=21.0,
121
+ set_fan_speed=ATAFanSpeed.AUTO,
122
+ )
123
+ ~~~
124
+
125
+ ### Control an Air-to-Water unit
126
+
127
+ ~~~python
128
+ from aiomelcloudhome import ATWZoneMode
129
+
130
+
131
+ await client.control_atw_unit(
132
+ "atw-unit-id",
133
+ power=True,
134
+ operation_mode_zone1=ATWZoneMode.HEAT_ROOM_TEMPERATURE,
135
+ set_temperature_zone1=21.0,
136
+ set_tank_water_temperature=50.0,
137
+ )
138
+ ~~~
139
+
140
+ ### Fetch telemetry
141
+
142
+ ~~~python
143
+ from datetime import UTC, datetime, timedelta
144
+
145
+
146
+ energy = await client.get_energy_telemetry(
147
+ "unit-id",
148
+ from_dt=datetime.now(UTC) - timedelta(days=1),
149
+ to_dt=datetime.now(UTC),
150
+ )
151
+
152
+ outdoor = await client.get_outdoor_temperature("ata-unit-id")
153
+ ~~~
154
+
155
+ More examples can be found in the examples directory.
156
+
157
+ ## Documentation
158
+
159
+ Project documentation and API reference:
160
+ https://github.com/erwindouna/aiomelcloudhome
161
+
162
+ ## Contributing
163
+
164
+ Contributions are welcome. Please open an issue or pull request.
165
+
166
+ For local development:
167
+
168
+ ~~~bash
169
+ uv sync --all-groups && uv run pre-commit install
170
+ ~~~
171
+
172
+ Run checks:
173
+
174
+ ~~~bash
175
+ uv run pre-commit run --all-files
176
+ ~~~
177
+
178
+ Run tests:
179
+
180
+ ~~~bash
181
+ uv run pytest
182
+ ~~~
183
+
184
+ Update snapshot tests:
185
+
186
+ ~~~bash
187
+ uv run pytest --snapshot-update
188
+ ~~~
189
+
190
+ ## License
191
+
192
+ MIT License
193
+
194
+ Copyright (c) 2026 Erwin Douna
195
+
196
+ <!-- MARKDOWN LINKS & IMAGES -->
197
+
198
+ [build-shield]: https://github.com/erwindouna/aiomelcloudhome/actions/workflows/tests.yaml/badge.svg
199
+ [build-url]: https://github.com/erwindouna/aiomelcloudhome/actions/workflows/tests.yaml
200
+ [codecov-shield]: https://codecov.io/gh/erwindouna/aiomelcloudhome/branch/main/graph/badge.svg
201
+ [codecov-url]: https://codecov.io/gh/erwindouna/aiomelcloudhome
202
+ [commits-shield]: https://img.shields.io/github/commit-activity/y/erwindouna/aiomelcloudhome.svg
203
+ [commits-url]: https://github.com/erwindouna/aiomelcloudhome/commits/main
204
+ [devcontainer-shield]: https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode
205
+ [devcontainer]: https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/erwindouna/aiomelcloudhome
206
+ [downloads-shield]: https://img.shields.io/pypi/dm/aiomelcloudhome
207
+ [downloads-url]: https://pypistats.org/packages/aiomelcloudhome
208
+ [last-commit-shield]: https://img.shields.io/github/last-commit/erwindouna/aiomelcloudhome.svg
209
+ [license-shield]: https://img.shields.io/github/license/erwindouna/aiomelcloudhome.svg
210
+ [project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg
211
+ [maintenance-shield]: https://img.shields.io/maintenance/yes/2026.svg
212
+ [pypi]: https://pypi.org/project/aiomelcloudhome/
213
+ [python-versions-shield]: https://img.shields.io/pypi/pyversions/aiomelcloudhome
214
+ [releases-shield]: https://img.shields.io/github/release/erwindouna/aiomelcloudhome.svg
215
+ [releases]: https://github.com/erwindouna/aiomelcloudhome/releases
216
+ [typing-shield]: https://github.com/erwindouna/aiomelcloudhome/actions/workflows/typing.yaml/badge.svg
217
+ [typing-url]: https://github.com/erwindouna/aiomelcloudhome/actions/workflows/typing.yaml
@@ -0,0 +1,188 @@
1
+ # aiomelcloudhome
2
+
3
+ [![GitHub Release][releases-shield]][releases]
4
+ [![Python Versions][python-versions-shield]][pypi]
5
+ ![Project Stage][project-stage-shield]
6
+ ![Project Maintenance][maintenance-shield]
7
+ [![License][license-shield]](LICENSE)
8
+
9
+ [![GitHub Activity][commits-shield]][commits-url]
10
+ [![PyPI Downloads][downloads-shield]][downloads-url]
11
+ [![GitHub Last Commit][last-commit-shield]][commits-url]
12
+ [![Open in Dev Containers][devcontainer-shield]][devcontainer]
13
+
14
+ [![Build Status][build-shield]][build-url]
15
+ [![Typing Status][typing-shield]][typing-url]
16
+ [![Code Coverage][codecov-shield]][codecov-url]
17
+
18
+ Asynchronous Python client for MELCloud Home.
19
+
20
+ ## About
21
+
22
+ aiomelcloudhome is an async client for the MELCloud Home API, focused on:
23
+
24
+ - Fetching account context (buildings and devices)
25
+ - Controlling Air-to-Air units
26
+ - Controlling Air-to-Water units
27
+ - Reading telemetry (energy and actual measurements)
28
+
29
+ The library is under active development and endpoint coverage will keep expanding.
30
+
31
+ ## Installation
32
+
33
+ ~~~bash
34
+ pip install aiomelcloudhome
35
+ ~~~
36
+
37
+ ## Usage
38
+
39
+ ### Authenticate with username and password
40
+
41
+ ~~~python
42
+ import asyncio
43
+
44
+ from aiohttp import ClientSession
45
+
46
+ from aiomelcloudhome import MELCloudHome
47
+
48
+
49
+ async def main() -> None:
50
+ async with ClientSession() as session:
51
+ async with MELCloudHome(
52
+ username="your@email.com",
53
+ password="your_password",
54
+ session=session,
55
+ ) as client:
56
+ context = await client.get_context()
57
+
58
+ for building in context.buildings:
59
+ print(f"Building: {building.name}")
60
+
61
+ for unit in building.air_to_air_units:
62
+ print(f"ATA: {unit.name} (room: {unit.room_temperature} C)")
63
+
64
+ for unit in building.air_to_water_units:
65
+ print(f"ATW: {unit.name} (tank: {unit.tank_water_temperature} C)")
66
+
67
+
68
+ if __name__ == "__main__":
69
+ asyncio.run(main())
70
+ ~~~
71
+
72
+ ### Authenticate with an existing access token
73
+
74
+ ~~~python
75
+ from aiomelcloudhome import MELCloudHome
76
+
77
+
78
+ client = MELCloudHome(access_token="YOUR_ACCESS_TOKEN")
79
+ ~~~
80
+
81
+ ### Control an Air-to-Air unit
82
+
83
+ ~~~python
84
+ from aiomelcloudhome import ATAFanSpeed, ATAOperationMode, MELCloudHome
85
+
86
+
87
+ await client.control_ata_unit(
88
+ "ata-unit-id",
89
+ power=True,
90
+ operation_mode=ATAOperationMode.HEAT,
91
+ set_temperature=21.0,
92
+ set_fan_speed=ATAFanSpeed.AUTO,
93
+ )
94
+ ~~~
95
+
96
+ ### Control an Air-to-Water unit
97
+
98
+ ~~~python
99
+ from aiomelcloudhome import ATWZoneMode
100
+
101
+
102
+ await client.control_atw_unit(
103
+ "atw-unit-id",
104
+ power=True,
105
+ operation_mode_zone1=ATWZoneMode.HEAT_ROOM_TEMPERATURE,
106
+ set_temperature_zone1=21.0,
107
+ set_tank_water_temperature=50.0,
108
+ )
109
+ ~~~
110
+
111
+ ### Fetch telemetry
112
+
113
+ ~~~python
114
+ from datetime import UTC, datetime, timedelta
115
+
116
+
117
+ energy = await client.get_energy_telemetry(
118
+ "unit-id",
119
+ from_dt=datetime.now(UTC) - timedelta(days=1),
120
+ to_dt=datetime.now(UTC),
121
+ )
122
+
123
+ outdoor = await client.get_outdoor_temperature("ata-unit-id")
124
+ ~~~
125
+
126
+ More examples can be found in the examples directory.
127
+
128
+ ## Documentation
129
+
130
+ Project documentation and API reference:
131
+ https://github.com/erwindouna/aiomelcloudhome
132
+
133
+ ## Contributing
134
+
135
+ Contributions are welcome. Please open an issue or pull request.
136
+
137
+ For local development:
138
+
139
+ ~~~bash
140
+ uv sync --all-groups && uv run pre-commit install
141
+ ~~~
142
+
143
+ Run checks:
144
+
145
+ ~~~bash
146
+ uv run pre-commit run --all-files
147
+ ~~~
148
+
149
+ Run tests:
150
+
151
+ ~~~bash
152
+ uv run pytest
153
+ ~~~
154
+
155
+ Update snapshot tests:
156
+
157
+ ~~~bash
158
+ uv run pytest --snapshot-update
159
+ ~~~
160
+
161
+ ## License
162
+
163
+ MIT License
164
+
165
+ Copyright (c) 2026 Erwin Douna
166
+
167
+ <!-- MARKDOWN LINKS & IMAGES -->
168
+
169
+ [build-shield]: https://github.com/erwindouna/aiomelcloudhome/actions/workflows/tests.yaml/badge.svg
170
+ [build-url]: https://github.com/erwindouna/aiomelcloudhome/actions/workflows/tests.yaml
171
+ [codecov-shield]: https://codecov.io/gh/erwindouna/aiomelcloudhome/branch/main/graph/badge.svg
172
+ [codecov-url]: https://codecov.io/gh/erwindouna/aiomelcloudhome
173
+ [commits-shield]: https://img.shields.io/github/commit-activity/y/erwindouna/aiomelcloudhome.svg
174
+ [commits-url]: https://github.com/erwindouna/aiomelcloudhome/commits/main
175
+ [devcontainer-shield]: https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode
176
+ [devcontainer]: https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/erwindouna/aiomelcloudhome
177
+ [downloads-shield]: https://img.shields.io/pypi/dm/aiomelcloudhome
178
+ [downloads-url]: https://pypistats.org/packages/aiomelcloudhome
179
+ [last-commit-shield]: https://img.shields.io/github/last-commit/erwindouna/aiomelcloudhome.svg
180
+ [license-shield]: https://img.shields.io/github/license/erwindouna/aiomelcloudhome.svg
181
+ [project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg
182
+ [maintenance-shield]: https://img.shields.io/maintenance/yes/2026.svg
183
+ [pypi]: https://pypi.org/project/aiomelcloudhome/
184
+ [python-versions-shield]: https://img.shields.io/pypi/pyversions/aiomelcloudhome
185
+ [releases-shield]: https://img.shields.io/github/release/erwindouna/aiomelcloudhome.svg
186
+ [releases]: https://github.com/erwindouna/aiomelcloudhome/releases
187
+ [typing-shield]: https://github.com/erwindouna/aiomelcloudhome/actions/workflows/typing.yaml/badge.svg
188
+ [typing-url]: https://github.com/erwindouna/aiomelcloudhome/actions/workflows/typing.yaml
@@ -0,0 +1,178 @@
1
+ [project]
2
+ name = "aiomelcloudhome"
3
+ version = "0.1.0"
4
+ description = "Asynchronous Python client for the Melcloud Home API"
5
+ authors = [{ name = "Erwin Douna", email = "e.douna@gmail.com" }]
6
+ requires-python = ">=3.11,<4"
7
+ readme = "README.md"
8
+ license = "MIT"
9
+ maintainers = [{ name = "Erwin Douna", email = "e.douna@gmail.com" }]
10
+ keywords = [
11
+ "melcloud",
12
+ "melcloudhome",
13
+ "hvac",
14
+ "heat-pump",
15
+ "async",
16
+ "api",
17
+ "client",
18
+ ]
19
+ classifiers = [
20
+ "Framework :: AsyncIO",
21
+ "Intended Audience :: Developers",
22
+ "License :: OSI Approved :: MIT License",
23
+ "Natural Language :: English",
24
+ "Programming Language :: Python :: 3.11",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Python :: 3",
27
+ "Topic :: Software Development :: Libraries :: Python Modules",
28
+ ]
29
+ dependencies = [
30
+ "aiohttp>=3.0.0",
31
+ "yarl>=1.6.0",
32
+ "pydantic>=2.0,<3",
33
+ "tenacity>=8.0.0",
34
+ ]
35
+
36
+ [project.urls]
37
+ Homepage = "https://github.com/erwindouna/aiomelcloudhome"
38
+ Repository = "https://github.com/erwindouna/aiomelcloudhome"
39
+ Documentation = "https://github.com/erwindouna/aiomelcloudhome"
40
+ "Bug Tracker" = "https://github.com/erwindouna/aiomelcloudhome/issues"
41
+ Changelog = "https://github.com/erwindouna/aiomelcloudhome/releases"
42
+
43
+ [dependency-groups]
44
+ dev = [
45
+ "aresponses==3.0.0",
46
+ "freezegun==1.5.5",
47
+ "codespell==2.4.2",
48
+ "covdefaults==2.3.0",
49
+ "coverage[toml]==7.14.1",
50
+ "mypy==2.1.0",
51
+ "pre-commit==4.6.0",
52
+ "pre-commit-hooks==6.0.0",
53
+ "pylint==4.0.5",
54
+ "pytest==9.0.3",
55
+ "pytest-asyncio==1.4.0",
56
+ "pytest-cov==7.1.0",
57
+ "ruff==0.15.15",
58
+ "syrupy==5.3.1",
59
+ "yamllint==1.38.0",
60
+ ]
61
+ docs = [
62
+ "mkdocs>=1.6.1,<2",
63
+ "mkdocstrings[python]>=0.30.1,<1.1.0",
64
+ "mkdocs-material>=9.6.22,<10",
65
+ ]
66
+
67
+ [tool.uv]
68
+ default-groups = [
69
+ "dev",
70
+ "docs",
71
+ ]
72
+
73
+ [tool.hatch.build.targets.sdist]
74
+ include = ["src/aiomelcloudhome"]
75
+
76
+ [tool.hatch.build.targets.wheel]
77
+ include = ["src/aiomelcloudhome"]
78
+
79
+ [tool.hatch.build.targets.wheel.sources]
80
+ "src/aiomelcloudhome" = "aiomelcloudhome"
81
+
82
+ [build-system]
83
+ requires = ["hatchling"]
84
+ build-backend = "hatchling.build"
85
+
86
+ [tool.coverage.run]
87
+ plugins = ["covdefaults"]
88
+ source = ["aiomelcloudhome"]
89
+
90
+ [tool.coverage.report]
91
+ fail_under = 90
92
+ show_missing = true
93
+
94
+ [tool.mypy]
95
+ platform = "linux"
96
+ python_version = "3.11"
97
+ show_column_numbers = true
98
+ follow_imports = "normal"
99
+ ignore_missing_imports = true
100
+ check_untyped_defs = true
101
+ disallow_any_generics = true
102
+ disallow_incomplete_defs = true
103
+ disallow_subclassing_any = true
104
+ disallow_untyped_calls = true
105
+ disallow_untyped_decorators = true
106
+ disallow_untyped_defs = true
107
+ no_implicit_optional = true
108
+ no_implicit_reexport = true
109
+ strict_optional = true
110
+ warn_incomplete_stub = true
111
+ warn_no_return = true
112
+ warn_redundant_casts = true
113
+ warn_return_any = true
114
+ warn_unused_configs = true
115
+ warn_unused_ignores = true
116
+
117
+ [tool.pylint.MASTER]
118
+ ignore-paths = ["^tests/.*$"]
119
+
120
+ [tool.pylint.BASIC]
121
+ good-names = ["_", "ex", "fp", "i", "id", "j", "k", "on", "Run", "T"]
122
+
123
+ [tool.pylint."MESSAGES CONTROL"]
124
+ disable = [
125
+ "duplicate-code",
126
+ "format",
127
+ "unsubscriptable-object",
128
+ "too-many-public-methods",
129
+ ]
130
+
131
+ [tool.pylint.SIMILARITIES]
132
+ ignore-imports = true
133
+
134
+ [tool.pylint.FORMAT]
135
+ max-line-length = 88
136
+
137
+ [tool.pylint.DESIGN]
138
+ max-attributes = 20
139
+
140
+ [tool.pytest.ini_options]
141
+ addopts = "--cov"
142
+ asyncio_mode = "auto"
143
+ asyncio_default_fixture_loop_scope = "function"
144
+
145
+ [tool.ruff]
146
+ lint.select = ["ALL"]
147
+ lint.ignore = [
148
+ "ANN401",
149
+ "D203",
150
+ "D213",
151
+ "D417",
152
+ "PLR2004",
153
+ "SLOT000",
154
+ "PLR0913",
155
+ "PLR0912",
156
+ "COM812",
157
+ "ISC001",
158
+ "TRY003",
159
+ "TRY301",
160
+ "EM101",
161
+ "EM102",
162
+ ]
163
+ line-length = 150
164
+
165
+ [tool.ruff.lint.flake8-pytest-style]
166
+ mark-parentheses = false
167
+ fixture-parentheses = false
168
+
169
+ [tool.ruff.lint.isort]
170
+ known-first-party = ["aiomelcloudhome"]
171
+
172
+ [tool.ruff.lint.mccabe]
173
+ max-complexity = 25
174
+
175
+ [tool.ruff.lint.per-file-ignores]
176
+ "src/aiomelcloudhome/aiomelcloudhome.py" = ["ASYNC109"]
177
+ "tests/**/*.py" = ["S101", "S105", "S106", "S108", "DTZ001", "DTZ006", "PLC0415", "ARG001", "ARG002", "TC001", "TC002", "TC003", "SIM117", "SLF001"]
178
+ "examples/**/*.py" = ["T201", "S106", "INP001"]