-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (94 loc) · 2.26 KB
/
Copy pathpyproject.toml
File metadata and controls
109 lines (94 loc) · 2.26 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel", "setuptools-git-versioning<3"]
build-backend = "setuptools.build_meta"
[project]
name = "zigpy-ziggurat"
dynamic = ["version"]
description = "Zigpy radio library for the Ziggurat server"
urls = {repository = "https://github.com/zigpy/zigpy-ziggurat"}
authors = [
{name = "puddly", email = "puddly3@gmail.com"}
]
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.12"
dependencies = [
"zigpy",
"aiohttp",
"mashumaro",
]
[project.entry-points."zigpy.radio"]
ziggurat = "zigpy_ziggurat.zigbee.application:ControllerApplication"
[tool.setuptools.packages.find]
exclude = ["tests", "tests.*"]
[dependency-groups]
testing = [
"mypy>=2.1.0",
"pre-commit>=4.6.0",
"uv",
"tomli",
"coverage[toml]",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-timeout",
]
ci = [
{include-group = "testing"},
"pytest-github-actions-annotate-failures",
"pytest-xdist",
]
[tool.setuptools-git-versioning]
enabled = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
required-version = ">=0.5.0"
target-version = "py39"
line-length = 88
exclude = [
".venv",
".git",
".tox",
"docs",
"venv",
"bin",
"lib",
"deps",
"build",
]
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I"]
[tool.ruff.lint.per-file-ignores]
# Fixtures are imported explicitly and referenced only as parameter names
"tests/*.py" = ["F401", "F811"]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = [
"zigpy_ziggurat",
]
combine-as-imports = true
split-on-trailing-comma = false
[tool.codespell]
ignore-words-list = ["hass"]
skip = ["./.*", "tests/*", "pyproject.toml"]
quiet-level = 2
[tool.mypy]
strict = true
show_error_codes = true
show_error_context = true
error_summary = true
# zigpy's integer and struct constructors are unannotated, making nearly every
# zigpy type construction an "untyped call"
disallow_untyped_calls = false
[tool.coverage.run]
source = ["zigpy_ziggurat"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"raise NotImplementedError",
"raise NotImplementedError()",
]