Skip to content

Commit 14fb6dd

Browse files
vdusekclaude
andcommitted
fix: remove volatile metadata from generated models header
Disable timestamp and filename in the datamodel-codegen header so that regenerating from an unchanged OpenAPI spec produces identical output, preventing spurious PRs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dd17027 commit 14fb6dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ extra_fields = "allow"
226226
allow_population_by_field_name = true
227227
aliases = "datamodel_codegen_aliases.json"
228228
formatters = ["ruff-check", "ruff-format"]
229+
custom_file_header = "# generated by datamodel-codegen"
230+
disable_timestamp = true
229231

230232
[tool.uv]
231233
# Minimal defense against supply-chain atatcks.

src/apify_client/_models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# generated by datamodel-codegen:
2-
# filename: https://docs.apify.com/api/openapi.json
3-
# timestamp: 2026-04-09T08:30:29+00:00
1+
# generated by datamodel-codegen
42

53
from __future__ import annotations
64

0 commit comments

Comments
 (0)