Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (91 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (91 loc) · 2.28 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
[project]
name = "midea-local"
dynamic = ["version"]
requires-python = ">=3.12"
description = "Control your Midea M-Smart appliances via local area network"
authors = [
{ name = "rokam", email = "lucas@mindello.com.br" },
{ name = "chemelli74", email = "simone.chemelli@gmail.com" }
]
license = "MIT"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dependencies = [
"aiofiles",
"aiohttp",
"anyio",
"colorlog",
"defusedxml",
"ifaddr",
"pycryptodome",
"platformdirs",
"typing_extensions>=4.16.0",
]
[project.urls]
"Homepage" = "https://github.com/midea-lan/midea-local"
[project.scripts]
midealocal = "midealocal.cli:main"
[dependency-groups]
dev = [
"build",
"mypy",
"pytest",
"pytest-asyncio",
"pytest-cov",
"ruff",
"setuptools",
"types-aiofiles",
"types-defusedxml",
]
[tool.uv-version]
# Source of truth for the uv version. All other version references must be derived from this value.
version = "0.13.5" # renovate: depName=uv datasource=pypi
[tool.setuptools.dynamic]
version = { attr = "midealocal.version.__version__" }
[tool.setuptools.packages.find]
include = ["midealocal*"]
[tool.pytest.ini_options]
addopts = "-v -Wdefault --cov=midealocal --cov-report=term-missing"
testpaths = ["tests"]
[tool.codespell]
ignore-regex = '\bmapp\.appsmb\.com\b'
[tool.coverage.run]
branch = true
source = ["midealocal"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@overload",
"if TYPE_CHECKING",
"raise NotImplementedError",
'if __name__ == "__main__":',
]
[tool.mypy]
files = ["midealocal", "tests"]
python_version = "3.12"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
strict_equality = 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]]
module = "tests.*"
allow_untyped_defs = true
disallow_untyped_decorators = false
[build-system]
requires = ["setuptools>=84.2.1", "wheel"]
build-backend = "setuptools.build_meta"