Skip to content

Commit ced69d6

Browse files
committed
fix(codegen): disable datamodel-codegen timestamp header
Without --disable-timestamp, every regen writes the current wall-clock time into the generated file's header, causing spec-check CI to open a PR on every run with a one-line timestamp-only diff. Also refreshes the regenerated file (one-line header removal) and picks up the already-published 0.5.0 version in uv.lock.
1 parent 94fd080 commit ced69d6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/typegen.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ uv run datamodel-codegen \
5555
--enum-field-as-literal one \
5656
--use-one-literal-as-default \
5757
--input-file-type openapi \
58-
--formatters ruff-format
58+
--formatters ruff-format \
59+
--disable-timestamp
5960

6061
# Why --enum-field-as-literal=one + --use-one-literal-as-default?
6162
#

src/devhelm/_generated.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# generated by datamodel-codegen:
22
# filename: .openapi-preprocessed.json
3-
# timestamp: 2026-04-29T17:00:31+00:00
43

54
from __future__ import annotations
65
from typing import Annotated, Any, Literal

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)