Debian Codegraph @

pyproject.toml

raw
1 [project]
2 name = "govee-ble"
3 version = "1.5.1"
4 license = "Apache-2.0"
5 description = "Manage Govee BLE devices"
6 authors = [{ name = "J. Nick Koston", email = "[email protected]" }]
7 readme = "README.md"
8 requires-python = ">=3.10"
9 dynamic = ["classifiers", "dependencies", "optional-dependencies"]
10
11 [project.urls]
12 "Repository" = "https://github.com/bluetooth-devices/govee-ble"
13 "Documentation" = "https://govee-ble.readthedocs.io"
14 "Bug Tracker" = "https://github.com/bluetooth-devices/govee-ble/issues"
15 "Changelog" = "https://github.com/bluetooth-devices/govee-ble/blob/main/CHANGELOG.md"
16
17 [tool.poetry]
18 classifiers = [
19 "Development Status :: 5 - Production/Stable",
20 "Intended Audience :: Developers",
21 "Natural Language :: English",
22 "Operating System :: OS Independent",
23 "Topic :: Software Development :: Libraries",
24 ]
25 packages = [
26 { include = "govee_ble", from = "src" },
27 ]
28
29 [tool.poetry.dependencies]
30 python = "^3.10"
31
32 # Documentation Dependencies
33 Sphinx = {version = ">=5,<9", optional = true}
34 sphinx-rtd-theme = {version = ">=1,<4", optional = true}
35 myst-parser = {version = ">=0.18,<4.1", optional = true}
36 home-assistant-bluetooth = ">=1.3.0"
37 sensor-state-data = ">=2.18.0"
38 bluetooth-sensor-state-data = ">=1.5.0"
39 bluetooth-data-tools = ">=1.29.18"
40 cryptography = ">=48.0.0"
41
42 [tool.poetry.extras]
43 docs = [
44 "myst-parser",
45 "sphinx",
46 "sphinx-rtd-theme",
47 ]
48
49 [tool.poetry.group.dev.dependencies]
50 pytest = "^9.1"
51 pytest-cov = "^7.1"
52
53 [tool.semantic_release]
54 branch = "main"
55 version_toml = ["pyproject.toml:project.version"]
56 version_variables = ["src/govee_ble/__init__.py:__version__"]
57 build_command = "pip install poetry && poetry build"
58
59 [tool.pytest.ini_options]
60 addopts = "-v -Wdefault --cov=govee_ble --cov-report=term-missing:skip-covered"
61 pythonpath = ["src"]
62
63 [tool.coverage.run]
64 branch = true
65
66 [tool.coverage.report]
67 exclude_lines = [
68 "pragma: no cover",
69 "@overload",
70 "if TYPE_CHECKING",
71 "raise NotImplementedError",
72 ]
73
74 [tool.ruff]
75 line-length = 88
76 target-version = "py310"
77
78 [tool.ruff.lint]
79 select = ["I"]
80
81 [tool.ruff.lint.isort]
82 known-first-party = ["govee_ble", "tests"]
83
84 [tool.mypy]
85 check_untyped_defs = true
86 disallow_any_generics = true
87 disallow_incomplete_defs = true
88 disallow_untyped_defs = true
89 mypy_path = "src/"
90 no_implicit_optional = true
91 show_error_codes = true
92 warn_unreachable = true
93 warn_unused_ignores = true
94 exclude = [
95 'docs/.*',
96 ]
97
98 [[tool.mypy.overrides]]
99 module = "tests.*"
100 allow_untyped_defs = true
101
102 [[tool.mypy.overrides]]
103 module = "docs.*"
104 ignore_errors = true
105
106 [build-system]
107 requires = ["poetry-core>=2.0.0"]
108 build-backend = "poetry.core.masonry.api"