-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (136 loc) · 3.83 KB
/
Copy pathpyproject.toml
File metadata and controls
152 lines (136 loc) · 3.83 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[project]
name = "python-roborock"
version = "7.5.0"
description = "A package to control Roborock vacuums."
authors = [{ name = "humbertogontijo", email = "[email protected]" }, {name="Lash-L"}, {name="allenporter"}]
requires-python = ">=3.11, <4"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
keywords = [
"roborock",
"vacuum",
"homeassistant",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"aiohttp>=3.8.2,<4",
"pycryptodome~=3.18",
"pycryptodomex~=3.18 ; sys_platform == 'darwin'",
"paho-mqtt>=1.6.1,<3.0.0",
"construct>=2.10.57,<3",
"protobuf>=6.31.1,<8",
"vacuum-map-parser-roborock",
"pyrate-limiter>=4.0.0,<5",
"aiomqtt>=2.5.0,<3",
]
[project.optional-dependencies]
# Dependencies required by the `roborock` command line tool (roborock.cli).
# Install with: pip install python-roborock[cli]
cli = [
"click>=8",
"click-shell~=2.1",
"pyyaml>=6.0.3",
"pyshark>=0.6,<0.7",
]
[project.urls]
Repository = "https://github.com/python-roborock/python-roborock"
Documentation = "https://python-roborock.readthedocs.io/"
[project.scripts]
roborock = "roborock.cli:main"
[dependency-groups]
dev = [
# Pull in the CLI dependencies so maintainers can run the `roborock`
# command and pdoc can import roborock.cli for docs generation.
"python-roborock[cli]",
# aioresponses is not compatible with aiohttp 3.14 yet. https://github.com/pnuckowski/aioresponses/issues/289
"aiohttp>=3.8.2,<3.14",
"pytest-asyncio>=1.1.0",
"pytest",
"pre-commit>=3.5,<5.0",
"mypy",
"ruff==0.14.11",
"codespell",
"aioresponses>=0.7.7,<0.8",
"freezegun>=1.5.1,<2",
"pytest-timeout>=2.3.1,<3",
"syrupy>=4.9.1,<6",
"pdoc>=15.0.4,<17",
"pytest-cov>=7.0.0",
]
[tool.hatch.build.targets.sdist]
include = ["roborock"]
[tool.hatch.build.targets.wheel]
include = ["roborock"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.semantic_release]
branch = "main"
version_toml = ["pyproject.toml:project.version"]
build_command = "pip install uv && uv lock --upgrade-package python-roborock && git add uv.lock && uv build"
changelog_file = 'CHANGELOG.md'
commit = true
[tool.semantic_release.branches.main]
match = "main"
prerelease = false
[tool.semantic_release.branches.temp-main-branch]
match = "temp-main-branch"
prerelease = false
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"chore",
"docs",
"feat",
"fix",
"refactor"
]
major_tags= ["refactor"]
[tool.ruff]
lint.ignore = []
# TODO: Enable ASYNC (flake8-async) in a dedicated follow-up PR once async open() and timeout parameters are refactored.
lint.select = [
"A",
"B",
"BLE",
"C4",
"E",
"F",
"FA",
"I",
"ICN",
"ISC",
"PGH",
"PIE",
"UP",
"W",
"YTT",
]
line-length = 120
extend-exclude = ["roborock/map/proto/*_pb2.py"]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
"roborock/__init__.py" = ["F403"]
"roborock/data/__init__.py" = ["F403"]
"roborock/data/b01_q7/__init__.py" = ["F403"]
"roborock/data/b01_q10/__init__.py" = ["F403"]
"roborock/data/dyad/__init__.py" = ["F403"]
"roborock/data/mower/__init__.py" = ["F403"]
"roborock/data/v1/__init__.py" = ["F403"]
"roborock/data/zeo/__init__.py" = ["F403"]
"roborock/map/proto/*_pb2.py" = ["E501", "I001", "UP009"]
"tests/*" = ["B010"]
[[tool.mypy.overrides]]
module = ["roborock.map.proto.*"]
ignore_errors = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
timeout = 30
log_format = "%(asctime)s.%(msecs)03d %(levelname)s (%(threadName)s) [%(name)s] %(message)s"