-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
39 lines (36 loc) · 1.43 KB
/
Copy pathpyproject.toml
File metadata and controls
39 lines (36 loc) · 1.43 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
[project]
dependencies = ["pydantic>=2"]
description = "Generated Pydantic models for the Edge Toolkit WS protocol"
license = "Apache-2.0 OR MIT"
name = "et-ws"
requires-python = ">=3.10"
version = "0.1.0"
[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