Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (66 loc) · 1.55 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (66 loc) · 1.55 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "devicebase"
version = "2026.9.21"
description = "Devicebase Python SDK"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Richie" },
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"httpx>=0.27.0",
"websockets>=13.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=5.0.0",
"mypy>=1.0",
"ruff>=0.3.0",
"respx>=0.22.0",
]
[project.urls]
Homepage = "https://www.devicebase.cn"
Repository = "https://github.com/devicebase/python-devicebase"
[tool.hatch.build.targets.wheel]
packages = ["src/devicebase"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["src/devicebase"]
branch = true
[tool.coverage.report]
# The suite sits well above this; the floor is here so a new module cannot
# arrive without tests and still pass.
fail_under = 80
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
ignore = ["E501"]
[tool.ruff.lint.pydocstyle]
convention = "google"