-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (68 loc) · 2.35 KB
/
Copy pathpyproject.toml
File metadata and controls
76 lines (68 loc) · 2.35 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
[project]
name = "oshconnect"
version = "0.5.1a0"
description = "Library for interfacing with OSH, helping guide visualization efforts, and providing a place to store configurations. Implements OGC CS API Part 3 (Pub/Sub) MQTT topic conventions including :data topics and resource event topics."
readme = "README.md"
authors = [
{ name = "Ian Patterson", email = "ian@botts-inc.com" },
]
requires-python = "<4.0,>=3.12"
dependencies = [
"paho-mqtt>=2.1.0",
"pydantic>=2.12.5,<3.0.0",
"shapely>=2.1.2,<3.0.0",
"websockets>=12.0,<16.0",
"requests",
"aiohttp>=3.12.15",
]
[project.optional-dependencies]
dev = [
"flake8>=7.2.0",
"pytest>=8.3.5",
"pytest-cov>=5.0.0",
"interrogate>=1.7.0",
"sphinx>=7.4.7",
"sphinx-rtd-theme>=2.0.0",
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.26.0",
]
tinydb = ["tinydb>=4.8.0,<5.0.0"]
[tool.setuptools]
packages = {find = { where = ["src/"]}}
[tool.pytest.ini_options]
pythonpath = ["src"]
markers = [
"network: test requires a live OSH server or external network endpoint (skipped by default in CI; see workflow `tests.yaml`).",
]
# Coverage is opt-in (run with `pytest --cov`) so the default `pytest` run stays fast.
# `--cov` with no argument picks up the source paths configured below.
[tool.coverage.run]
source = ["src/oshconnect"]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = false
precision = 2
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@(abc\\.)?abstractmethod",
"if __name__ == .__main__.:",
]
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.xml]
output = "coverage.xml"
# Docstring presence (not style). Run with `uv run interrogate -v src/oshconnect`.
[tool.interrogate]
ignore-init-method = true # constructors covered by class docstring
ignore-init-module = true # don't require docstrings on bare __init__.py
ignore-magic = true # skip dunder methods (__repr__, __eq__, etc.)
ignore-private = true # skip _name and __name (non-dunder) members
ignore-property-decorators = true
ignore-nested-functions = true
ignore-setters = true
fail-under = 0 # report-only for now; raise once a baseline is set
exclude = ["tests", "docs", "build", ".venv", "scripts"]
verbose = 2 # 0=summary, 1=per-file, 2=per-symbol