-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (66 loc) · 1.63 KB
/
pyproject.toml
File metadata and controls
78 lines (66 loc) · 1.63 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
[project]
name = "rdp_mqtt"
version = "1.0.0"
description = "MQTT client library"
authors = [{ name = "Michael Gafert", email = "michael.gafert@ait.ac.at" }]
readme = "README.md"
packages = [{ include = "rdp_mqtt" }]
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
paho-mqtt = "^2.1.0"
pydantic = "^2.11.4"
orjson = "^3.10.18"
zstandard = "^0.23.0"
attrs = "^24.2.0"
protobuf = "^6.30.0"
six = "^1.17.0"
[tool.poetry.group.dev.dependencies]
pytest = ">=7.0.0"
pytest-asyncio = ">=0.21.0"
pytest-timeout = ">=2.1.0"
pytest-cov = "^5.0.0"
mypy = "^1.11.2"
types-protobuf = "^6.30.2.20250506"
pre-commit = "^3.8.0"
mypy-gitlab-code-quality = "^1.1.0"
types-six = "^1.17.0.20250304"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.paths]
source = ["rdp_mqtt"]
[tool.coverage.run]
branch = true
source = ["rdp_mqtt"]
omit = [
"rdp_mqtt/sparkplug/protobuf_to_dict.py",
"rdp_mqtt/sparkplug/generated/sparkplug_b_pb2.py"
]
[tool.coverage.report]
show_missing = true
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
extend-exclude = ["rdp_mqtt/sparkplug/generated/sparkplug_b_pb2.py"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"ASYNC", # flake8-async
"DTZ", # flake8-datetimez
"PD", # pandas-vet
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.mypy]
strict = true
exclude = ["tests"]