-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
129 lines (119 loc) · 2.86 KB
/
pyproject.toml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[tool.poetry]
name = "Unified Name Space"
version = "0.9.2"
description = "Set of modules / tools to realize an UNS for your organization"
license = "MIT"
authors = ["Ashwin Krishnan <mkashwin@gmail.com>"]
maintainers = [
"Himanshu Dhami <himanshudhami@gmail.com>",
"Johan Jeppson <logic4human@gmail.com>",
]
readme = "README.md"
# homepage = ""
repository = "https://github.com/mkashwin/unifiednamespace/"
# documentation = ""
keywords = [
"uns",
"mqtt",
"sparkplugB",
"graphDB",
"historian",
"kafka",
"graphql",
]
package-mode = false
classifiers = [
"License :: OSI Approved :: MIT License",
"Intended Audience :: Manufacturing",
"Topic :: Software Development :: Libraries :: MQTT",
"Topic :: Industry 4.0 :: Unified Name Space :: MQTT client"
]
[tool.poetry.dependencies]
python = "^3.12"
# All modules need the logger
logger = "^1.4"
# List of sub modules
uns_mqtt = { path = "./02_mqtt-cluster", develop = true }
uns_graphdb = { path = "./03_uns_graphdb", develop = true }
uns_historian = { path = "./04_uns_historian", develop = true }
uns_spb_mapper = { path = "./05_sparkplugb", develop = true }
uns_kafka_mapper = { path = "./06_uns_kafka", develop = true }
uns_graphql = { path = "./07_uns_graphql", develop = true }
[tool.poetry.group.test.dependencies]
pytest = "^8.3.4"
pytest-asyncio = "^0.25"
pytest-xdist = { version="^3.6.1",extras =["psutil2"]}
pytest-timeout = "^2.3.1"
pytest-cov = "^6.0.0"
safety = "^3.2.14"
ruff = "^0.8"
pytest-retry = "^1.6.3"
[tool.pytest.ini_options]
markers = ["integrationtest: mark a test as an integration test"]
norecursedirs = [".git", "build", "node_modules", "env*", "tmp*"]
addopts = "--import-mode=importlib -n auto --dist loadgroup --timeout=300 --durations=10"
asyncio_default_fixture_loop_scope = "function"
testpaths = [
"02_mqtt-cluster/test",
"03_uns_graphdb/test",
"04_uns_historian/test",
"05_sparkplugb/test",
"06_uns_kafka/test",
"07_uns_graphql/test",
]
[tool.ruff]
exclude = [
# No need to traverse our git directories
".git",
".github",
"__pycache__",
".cache",
# The conf file is mostly autogenerated, ignore it
"*env*",
# This contains our built documentation
"build",
# This contains builds of flake8 that we don't want to check
"dist",
# This folder contains auto generated files which doesn't make sense to check
"generated",
]
# Allow lines to be as long as 127.
line-length = 127
[tool.ruff.lint]
preview = true
unfixable = ["B"]
select = [
"A",
"ARG",
"B",
"C",
"E",
"F",
"UP",
"W",
"I",
"N",
"S",
"T",
"RUF",
"LOG",
"PERF",
]
ignore = [
"D200",
"D211",
"D212",
"D213",
"S101",
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"COM819",
"ISC001",
"ISC002",
]
[tool.ruff.lint.mccabe]
max-complexity = 15