Debian Codegraph @

pyproject.toml

raw ◀ ▶
1 Debian patch touch this file
1 [build-system]
2 build-backend = "setuptools.build_meta"
3 requires = [
4 "setuptools>=77.0",
5 ]
6
7 [project]
8 authors = [
9 {name = "Nabu Casa, Inc.", email = "[email protected]"},
10 ]
11 classifiers = [
12 "Intended Audience :: End Users/Desktop",
13 "Intended Audience :: Developers",
14 "Operating System :: OS Independent",
15 "Topic :: Internet :: Proxy Servers",
16 "Topic :: Software Development :: Libraries :: Python Modules",
17 "Development Status :: 5 - Production/Stable",
18 "Programming Language :: Python :: 3.14",
19 ]
20 dependencies = [
21 "acme==5.4.0",
22 "aiohttp>=3.6.1",
23 "atomicwrites-homeassistant==1.4.1",
24 "attrs>=19.3",
25 "ciso8601>=2.3.0",
26 "cryptography>=42.0.0",
27 "grpcio>=1.75.1,<2",
28 "icmplib>=3,<4",
29 "josepy>=2,<3",
30 "pycognito==2024.5.1",
31 "PyJWT>=2.8.0",
32 "requests>=2.0,<3",
•33 "snitun==0.46.1",
34 "voluptuous>=0.15",
35 "webrtc-models<1.0.0",
36 "yarl>=1.20,<2",
37 "sentence-stream>=1.2.0,<2",
38 ]
39 description = "Home Assistant cloud integration by Nabu Casa, Inc."
40 license = "GPL-3.0-only"
41 name = "hass-nabucasa"
42 readme = "README.md"
43 requires-python = ">=3.14"
44 version = "0.0.0"
45
46 [project.optional-dependencies]
47 test = [
48 "codespell==2.4.2",
49 "freezegun==1.5.5",
50 "mypy==1.19.1",
51 "pre-commit==4.5.1",
52 "pre-commit-hooks==6.0.0",
53 "pylint==4.0.5",
54 "pytest-aiohttp==1.1.0",
55 "pytest-socket==0.7.0",
56 "pytest-timeout==2.4.0",
57 "pytest==9.0.2",
58 "ruff==0.15.6",
59 "types_atomicwrites==1.4.5.1",
60 "types_pyOpenSSL==24.1.0.20240722",
61 "types-requests==2.32.4.20260107",
62 "xmltodict==1.0.4",
63 "syrupy==5.1.0",
64 "tomli==2.4.0",
65 ]
66
67 [tool.mypy]
68 check_untyped_defs = true
69 disallow_incomplete_defs = true
70 disallow_subclassing_any = true
71 disallow_untyped_calls = true
72 disallow_untyped_decorators = true
73 disallow_untyped_defs = true
74 ignore_missing_imports = true
75 no_implicit_optional = true
76 show_error_codes = true
77 strict_equality = true
78 warn_incomplete_stub = true
79 warn_redundant_casts = true
80 warn_return_any = true
81 warn_unreachable = true
82 warn_unused_configs = true
83 warn_unused_ignores = true
84
85 [tool.pylint.BASIC]
86 disable = [
87 "abstract-method",
88 "cyclic-import",
89 "duplicate-code",
90 "global-statement",
91 "line-too-long",
92 "locally-disabled",
93 "missing-docstring",
94 "not-context-manager",
95 "too-few-public-methods",
96 "too-many-arguments",
97 "too-many-branches",
98 "too-many-instance-attributes",
99 "too-many-lines",
100 "too-many-locals",
101 "too-many-public-methods",
102 "too-many-return-statements",
103 "too-many-statements",
104 "unused-argument",
105 ]
106 extension-pkg-allow-list=[
107 "ciso8601",
108 ]
109 generated-members=[
110 "botocore.errorfactory",
111 ]
112 good-names= [
113 "_",
114 "cb",
115 "ex",
116 "fp",
117 "i",
118 "id",
119 "j",
120 "k",
121 "Run",
122 "T",
123 ]
124
125 [tool.pylint.EXCEPTIONS]
126 overgeneral-exceptions=[
127 "builtins.Exception",
128 ]
129
130 [tool.pylint.MAIN]
131 ignore=[
132 "tests_*",
133 ]
134 reports=false
135
136 [tool.pytest.ini_options]
137 addopts = "--disable-socket --allow-hosts=127.0.0.1 --snapshot-warn-unused"
138 asyncio_mode = "auto"
139 timeout = 5
140
141 [tool.ruff]
142 fix = true
143 line-length = 88
144 show-fixes = true
145 target-version = "py314"
146
147 [tool.ruff.lint]
148 ignore = [
149 "ANN401", # https://docs.astral.sh/ruff/rules/any-type/
150 "COM812", # https://docs.astral.sh/ruff/rules/missing-trailing-comma/
151 "DTZ005", # https://docs.astral.sh/ruff/rules/call-datetime-now-without-tzinfo/
152 "EM101", # https://docs.astral.sh/ruff/rules/raw-string-in-exception/
153 "EM102", # https://docs.astral.sh/ruff/rules/f-string-in-exception/
154 "FBT", # https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
155 "N818", # https://docs.astral.sh/ruff/rules/error-suffix-on-exception-name/
156 "PLR2004", # https://docs.astral.sh/ruff/rules/magic-value-comparison/
157 "RUF006", # https://docs.astral.sh/ruff/rules/asyncio-dangling-task/
158 "S101", # https://docs.astral.sh/ruff/rules/assert/
159 "S303", # https://docs.astral.sh/ruff/rules/suspicious-insecure-hash-usage/
160 "S311", # https://docs.astral.sh/ruff/rules/suspicious-non-cryptographic-random-usage/
161 "TID252", # https://docs.astral.sh/ruff/rules/relative-imports/
162 "TC002", # https://docs.astral.sh/ruff/rules/typing-only-third-party-import/
163 "TC003", # https://docs.astral.sh/ruff/rules/typing-only-standard-library-import/
164 "TRY003", # https://docs.astral.sh/ruff/rules/raise-vanilla-args/
165 "TRY301", # https://docs.astral.sh/ruff/rules/raise-within-try/
166 "TRY400", # https://docs.astral.sh/ruff/rules/error-instead-of-exception/
167 "UP046", # https://docs.astral.sh/ruff/rules/non-pep695-generic-class/
168 "UP047", # https://docs.astral.sh/ruff/rules/non-pep695-generic-function/
169 ]
170
171 select = [
172 "ALL",
173 ]
174
175 [tool.ruff.lint.extend-per-file-ignores]
176 "py.typed" = [
177 "D100",
178 ]
179
180 [tool.ruff.lint.flake8-pytest-style]
181 fixture-parentheses = false
182 mark-parentheses = false
183
184 [tool.ruff.lint.isort]
185 combine-as-imports = true
186 force-sort-within-sections = true
187 known-first-party = [
188 "hass_nabucasa",
189 ]
190
191 [tool.ruff.lint.mccabe]
192 max-complexity = 22
193
194 [tool.ruff.lint.pydocstyle]
195 # Use Google-style docstrings.
196 convention = "pep257"
197
198 [tool.ruff.lint.pylint]
199 max-args = 15
200 max-branches = 30
201 max-returns = 7
202 max-statements = 80
203
204 [tool.setuptools]
205 include-package-data = true
206 platforms = [
207 "any",
208 ]
209 zip-safe = false
210
211 [tool.setuptools.package-data]
212 hass_nabucasa = [
213 "py.typed",
214 ]
215
216 [tool.setuptools.packages.find]
217 include = [
218 "hass_nabucasa*",
219 ]