-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (116 loc) · 3.31 KB
/
pyproject.toml
File metadata and controls
133 lines (116 loc) · 3.31 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
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
130
131
132
133
[build-system]
requires = ["setuptools>=42", "setuptools-scm>=8", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lotusrpc"
description = "A code generator for remote procedure calls on embedded systems"
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "T Zijnge" }]
keywords = [
"code generation",
"embedded systems",
"C++",
"RPC",
"remote procedure call",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: C++",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Embedded Systems",
]
dependencies = [
"code-generation==2.3.0",
"pyyaml==6.0.2",
"jsonschema==4.26.0",
"click==8.3.0",
"click-log==0.4.0",
"types-click-log==0.4.0.20250413",
"typing-extensions==4.15.0",
"colorama==0.4.6",
"pydantic==2.12.5",
]
dynamic = ["version"]
[project.optional-dependencies]
transport_serial = ["pyserial==3.5"]
[project.urls]
homepage = "https://github.com/tzijnge/LotusRpc"
"Bug Tracker" = "https://github.com/tzijnge/LotusRpc/issues"
"Documentation" = "https://tzijnge.github.io/LotusRpc/"
"Source Code" = "https://github.com/tzijnge/LotusRpc"
[project.scripts]
lrpcg = "lrpc.tools.lrpcg.lrpcg:run_cli"
lrpcc = "lrpc.tools.lrpcc.lrpcc:run_cli"
[tool.setuptools.package-data]
"lrpc.schema" = ["lotusrpc-schema.json"]
"lrpc.resources.cpp" = [
"Server.hpp",
"Service.hpp",
"EtlRwExtensions.hpp",
"MetaError.hpp",
"LrpcTypes.hpp",
]
"lrpc.resources.meta" = ["meta.lrpc.yaml"]
lotusrpc = ["py.typed"]
[tool.setuptools]
include-package-data = true
[tool.setuptools_scm]
local_scheme = "no-local-version"
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = ["tests"]
filterwarnings = ["error"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
fixable = ["ALL"]
ignore = [
"D", # doc strings
"EM101", # strings in exceptions
"EM102", # strings in exceptions
"TRY003", # strings in exceptions
"ANN401", # any type
"TC006", # quotes around type in typing.cast
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"PLR2004", # magic numbers
"S101", # use of assert
]
[tool.pylint]
disable = [
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
]
max-attributes = 12
[tool.pylint.format]
# line length is handled by ruff. Any remaining long lines cannot be formatted properly
disable = ["line-too-long"]
allow-reexport-from-package = true
[tool.mypy]
files = ["src", "tests"]
strict = true
# Increase strictness of checks
disallow_any_decorated = true
strict_optional = true
warn_no_return = true
warn_unreachable = true
# Display statistics after running
# dump_type_stats = true
# dump_inference_stats = true
[tool.coverage.run]
branch = true
[tool.towncrier]
directory = "changes"
package_dir = "src"
filename = "CHANGES.md"
issue_format = "[#{issue}](https://github.com/tzijnge/LotusRpc/issues/{issue})"
title_format = "## {name} {version} ({project_date})"