-
Notifications
You must be signed in to change notification settings - Fork 61
/
pyproject.toml
205 lines (186 loc) · 4.74 KB
/
pyproject.toml
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=62.3",
]
[project]
authors = [
{name = "Nabu Casa, Inc.", email = "[email protected]"},
]
classifiers = [
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Topic :: Internet :: Proxy Servers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"acme==3.0.1",
"aiohttp>=3.6.1",
"atomicwrites-homeassistant==1.4.1",
"attrs>=19.3",
"ciso8601>=2.3.0",
"cryptography>=42.0.0",
"pycognito==2024.5.1",
"PyJWT>=2.8.0",
"snitun==0.39.1",
"webrtc-models<1.0.0",
]
description = "Home Assistant cloud integration by Nabu Casa, Inc."
license = {text = "GPL v3"}
name = "hass-nabucasa"
readme = "README.md"
requires-python = ">=3.12"
version = "0.85.0"
[project.optional-dependencies]
test = [
"codespell==2.3.0",
"mypy==1.13.0",
"pre-commit==4.0.1",
"pre-commit-hooks==5.0.0",
"pylint==3.3.1",
"pytest-aiohttp==1.0.5",
"pytest-timeout==2.3.1",
"pytest==8.3.3",
"ruff==0.8.0",
"types_atomicwrites==1.4.5.1",
"types_pyOpenSSL==24.1.0.20240722",
"xmltodict==0.14.2",
"syrupy==4.8.0",
"tomli==2.1.0",
]
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
ignore_missing_imports = 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.pylint.BASIC]
disable = [
"abstract-method",
"cyclic-import",
"duplicate-code",
"global-statement",
"line-too-long",
"locally-disabled",
"missing-docstring",
"not-context-manager",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"unused-argument",
]
extension-pkg-allow-list=[
"ciso8601",
]
generated-members=[
"botocore.errorfactory",
]
good-names= [
"_",
"cb",
"ex",
"fp",
"i",
"id",
"j",
"k",
"Run",
"T",
]
[tool.pylint.EXCEPTIONS]
overgeneral-exceptions=[
"builtins.Exception",
]
[tool.pylint.MAIN]
ignore=[
"tests_*",
]
reports=false
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.ruff]
fix = true
line-length = 88
show-fixes = true
target-version = "py311"
[tool.ruff.lint]
ignore = [
"ANN101", # https://docs.astral.sh/ruff/rules/missing-type-self/
"ANN401", # https://docs.astral.sh/ruff/rules/any-type/
"DTZ005", # https://docs.astral.sh/ruff/rules/call-datetime-now-without-tzinfo/
"EM101", # https://docs.astral.sh/ruff/rules/raw-string-in-exception/
"EM102", # https://docs.astral.sh/ruff/rules/f-string-in-exception/
"FBT", # https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
"N818", # https://docs.astral.sh/ruff/rules/error-suffix-on-exception-name/
"PLR2004", # https://docs.astral.sh/ruff/rules/magic-value-comparison/
"RUF006", # https://docs.astral.sh/ruff/rules/asyncio-dangling-task/
"S101", # https://docs.astral.sh/ruff/rules/assert/
"S303", # https://docs.astral.sh/ruff/rules/suspicious-insecure-hash-usage/
"S311", # https://docs.astral.sh/ruff/rules/suspicious-non-cryptographic-random-usage/
"TCH002", # https://docs.astral.sh/ruff/rules/typing-only-third-party-import/
"TCH003", # https://docs.astral.sh/ruff/rules/typing-only-standard-library-import/
"TRY003", # https://docs.astral.sh/ruff/rules/raise-vanilla-args/
"TRY301", # https://docs.astral.sh/ruff/rules/raise-within-try/
"TRY400", # https://docs.astral.sh/ruff/rules/error-instead-of-exception/
]
select = [
"ALL",
]
[tool.ruff.lint.extend-per-file-ignores]
"py.typed" = [
"D100",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
known-first-party = [
"hass_nabucasa",
]
[tool.ruff.lint.mccabe]
max-complexity = 22
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "pep257"
[tool.ruff.lint.pylint]
max-args = 15
max-branches = 30
max-returns = 7
max-statements = 80
[tool.setuptools]
include-package-data = true
platforms = [
"any",
]
zip-safe = false
[tool.setuptools.package-data]
hass_nabucasa = [
"py.typed",
]
[tool.setuptools.packages.find]
include = [
"hass_nabucasa*",
]