-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
50 lines (45 loc) · 1.68 KB
/
Copy pathpyproject.toml
File metadata and controls
50 lines (45 loc) · 1.68 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
[project]
name = "hass-aviation-feeder"
version = "0.0.0"
description = "Aviation Feeder Home Assistant add-on (unit-test dependency lock)"
readme = "README.md"
requires-python = "==3.13.*"
dependencies = [
# paho-mqtt is the only third-party module the aviation_feeder_mqtt unit
# tests import (transitively via app.py). Pinned to the same 2.1.0 the
# image ships via apt (python3-paho-mqtt=2.1.0-1 in the Dockerfile) so the
# host test venv exercises the same major/minor the add-on runs on.
# requests (the other runtime dep) is imported lazily and never reached by
# the tests, so it is intentionally not a test dependency here — it stays
# tracked only via the Dockerfile deb pin.
"paho-mqtt==2.1.0",
]
[tool.uv]
# Not an installable package — aviation_feeder_mqtt is imported from source via
# tool.pytest pythonpath, not built/installed. Mirrors ha-weewx.
package = false
required-version = "==0.12.5"
[dependency-groups]
dev = [
"aiomqtt>=2.5.1",
"mypy>=2.1.0",
"pytest>=9.0.3",
]
[tool.mypy]
# aviation_feeder_mqtt is imported from source (mirrors tool.pytest pythonpath),
# so put its parent on the mypy path too.
mypy_path = ["aviation_feeder"]
# paho-mqtt is the only third-party import the package reaches under test.
# Silence import noise from modules without bundled stubs without weakening
# checks on our own code.
[[tool.mypy.overrides]]
module = [
"paho.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
# The add-on's Python lives under aviation_feeder/; put it on sys.path so the
# stdlib-unittest suites under tests/unit can `import aviation_feeder_mqtt`.
testpaths = ["tests/unit"]
pythonpath = ["aviation_feeder"]
addopts = "-ra"