-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (113 loc) · 3.52 KB
/
pyproject.toml
File metadata and controls
127 lines (113 loc) · 3.52 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
[build-system]
requires = ["setuptools>=68.0,<82.1", "wheel>=0.40,<0.47"]
build-backend = "setuptools.build_meta"
[project]
name = "aiohasupervisor"
license = { text = "Apache-2.0" }
description = "Asynchronous python client for Home Assistant Supervisor."
readme = "README.md"
authors = [
{ name = "The Home Assistant Authors", email = "hello@home-assistant.io" },
]
keywords = ["docker", "home-assistant", "api", "client-library"]
requires-python = ">=3.13.0"
dependencies = [
"aiohttp>=3.3.0,<4.0.0",
"mashumaro>=3.11,<4.0",
"orjson>=3.6.1,<4.0.0",
]
# The version is set by GH action on release!
version = "0.0.0"
[project.optional-dependencies]
dev = [
# Production requirements
"aiohttp==3.13.3",
"mashumaro==3.20",
"orjson==3.11.7",
# Test requirements
"aioresponses==0.7.8",
"codespell==2.4.2",
"coverage==7.13.4",
"mypy==1.19.1",
"pre-commit==4.5.1",
"pytest-aiohttp==1.1.0",
"pytest-cov==7.0.0",
"pytest-timeout==2.4.0",
"pytest==9.0.2",
"ruff==0.15.6",
"yamllint==1.38.0",
]
[project.urls]
"Homepage" = "https://www.home-assistant.io/"
"Source Code" = "https://github.com/home-assistant-libs/python-supervisor-client"
"Bug Reports" = "https://github.com/home-assistant-libs/python-supervisor-client/issues"
"Docs: Dev" = "https://developers.home-assistant.io/"
"Discord" = "https://www.home-assistant.io/join-chat/"
"Forum" = "https://community.home-assistant.io/"
[tool.setuptools]
platforms = ["any"]
zip-safe = false
include-package-data = true
[tool.setuptools.package-data]
"aiohasupervisor" = ["py.typed"]
[tool.setuptools.packages.find]
include = ["aiohasupervisor*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = [".git"]
log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(name)s:%(filename)s:%(lineno)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
asyncio_mode = "auto"
filterwarnings = [
"error",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:dirhash",
"ignore::pytest.PytestUnraisableExceptionWarning",
"ignore:'asyncio.iscoroutinefunction' is deprecated:DeprecationWarning:aioresponses",
]
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = [
"ANN401", # Opinionated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"EM", # flake8-errmsg, more frustration then value
"PLR0911", # Too many return statements ({returns} > {max_returns})
"PLR0912", # Too many branches ({branches} > {max_branches})
"PLR0913", # Too many arguments to function call ({c_args} > {max_args})
"PLR0915", # Too many statements ({statements} > {max_statements})
"TRY003", # Avoid specifying long messages outside the exception class
# Recommended to disable due to conflicts with formatter
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812",
"COM819",
"D206",
"D300",
"E111",
"E114",
"E117",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"pytz".msg = "use zoneinfo instead"
[tool.ruff.lint.isort]
force-sort-within-sections = true
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
forced-separate = ["tests"]
known-first-party = ["aiohasupervisor", "tests"]
combine-as-imports = true
[tool.ruff.lint.mccabe]
max-complexity = 25