-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (129 loc) · 3.71 KB
/
pyproject.toml
File metadata and controls
146 lines (129 loc) · 3.71 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = ["setuptools>=70", "wheel", "unasync"]
build-backend = "setuptools.build_meta"
[project]
name = "pyhive-integration"
version = "2.0.0"
description = "A Python library to interface with the Hive API"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "KJonline24", email = "53_galleys_snark@icloud.com" }]
keywords = ["hive", "home", "api", "library", "smart-home", "home-automation", "IoT", "async", "integration"]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Home Automation",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"boto3>=1.34,<1.38",
"botocore>=1.34,<1.38",
"requests",
"aiohttp",
"pyquery",
]
[project.urls]
Homepage = "https://github.com/Pyhive/pyhiveapi"
Source = "https://github.com/Pyhive/Pyhiveapi"
"Issue Tracker" = "https://github.com/Pyhive/Pyhiveapi/issues"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"pylint",
"ruff",
"mypy",
"bandit",
"pre-commit",
"graphifyy",
"unasync",
"tokenize-rt",
]
[tool.setuptools]
packages = ["apyhiveapi", "apyhiveapi.api", "apyhiveapi.helper", "pyhive", "pyhive.api", "pyhive.helper"]
[tool.setuptools.package-dir]
apyhiveapi = "src"
pyhive = "src"
[tool.setuptools.package-data]
apyhiveapi = ["data/*.json"]
pyhive = ["data/*.json"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "W", "UP", "B", "PL"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"PLR2004", # magic values are expected in test assertions
"PLR0913", # test factory functions legitimately take many parameters
"PLC0415", # conditional/lazy imports are a valid test-isolation pattern
]
[tool.ruff.lint.isort]
known-third-party = [
"aiohttp", "apyhiveapi", "boto3", "botocore",
"pyquery", "requests", "setuptools", "six", "urllib3",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "--cov --cov-context=test --cov-report=lcov:coverage/lcov.info --cov-report=html:coverage/html --cov-report=term-missing"
[tool.coverage.run]
source = ["src"]
branch = true
data_file = "coverage/.coverage"
omit = [
"tests/*",
# deprecation shims — re-export only
"src/action.py",
"src/boost.py",
"src/color.py",
"src/device_attributes.py",
"src/heating.py",
"src/hotwater.py",
"src/hub.py",
"src/light.py",
"src/plug.py",
"src/sensor.py",
"src/session_discovery.py",
"src/session_polling.py",
"src/session_tokens.py",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
precision = 1
fail_under = 99
exclude_also = [
"if TYPE_CHECKING:",
"raise NotImplementedError",
"pragma: no cover",
"@(abc\\.)?abstractmethod",
"if __name__ == .__main__.:",
"\\.\\.\\.",
]
[tool.coverage.html]
directory = "coverage/html"
show_contexts = true
[tool.coverage.lcov]
output = "coverage/lcov.info"
[tool.mypy]
python_version = "3.10"
show_error_codes = true
follow_imports = "silent"
ignore_missing_imports = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["boto3", "boto3.*", "botocore", "botocore.*", "requests", "requests.*", "pyquery", "pyquery.*"]
ignore_missing_imports = true