Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (58 loc) · 2.34 KB
/
Copy pathpyproject.toml
File metadata and controls
62 lines (58 loc) · 2.34 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
[project]
authors = [{ email = "john.vandenberg@curtin.edu.au", name = "John Vandenberg" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Pydantic :: 2",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet",
"Topic :: System :: Distributed Computing",
"Typing :: Typed",
]
dependencies = ["pydantic>=2"]
description = "Generated Pydantic models for the Edge Toolkit WS protocol"
keywords = ["asyncapi", "edge-computing", "edge-toolkit", "pydantic", "websocket"]
license = "Apache-2.0 OR MIT"
name = "et-ws"
readme = "README.md"
requires-python = ">=3.10"
version = "0.1.0"
[project.urls]
Changelog = "https://github.com/edge-toolkit/core/blob/main/CHANGELOG.md"
Homepage = "https://github.com/edge-toolkit/core"
Issues = "https://github.com/edge-toolkit/core/issues"
Source = "https://github.com/edge-toolkit/core/tree/main/generated/python-ws"
[build-system]
build-backend = "uv_build"
requires = ["uv_build==0.11.8"]
[tool.uv.build-backend]
module-name = "et_ws"
module-root = ""
# Model-shape + output-style settings for `mise run gen:python-ws`. datamodel-
# code-generator searches cwd upward for a pyproject.toml, so the task runs from
# this dir and passes only the input/output paths on the CLI; everything stable
# lives here. Two non-obvious ones:
# custom-file-header = "#": the only way to suppress the default
# "generated by ... / filename: ..." banner -- an empty string is treated as
# "no override" and the banner returns. The task strips the residual lone
# `#` line afterwards.
# formatters: opt into the ruff formatter stack (silences the black/isort
# deprecation FutureWarning). The `[ruff]` extra on the pipx install (see
# .mise/config.python.toml [tools]) puts ruff in datamodel-codegen's venv.
[tool.datamodel-codegen]
custom-file-header = "#"
disable-timestamp = true
field-constraints = true
formatters = ["ruff-check", "ruff-format"]
input-file-type = "jsonschema"
output-model-type = "pydantic_v2.BaseModel"
target-python-version = "3.10"
use-double-quotes = true
use-schema-description = true
use-title-as-name = true
use-union-operator = true