From 14fb6dddf24abf2c8ac85fb6f3b85a18b3b40ad8 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Mon, 13 Apr 2026 10:00:14 +0200 Subject: [PATCH] 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) --- pyproject.toml | 2 ++ src/apify_client/_models.py | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 10a60135..eeabc12c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -226,6 +226,8 @@ extra_fields = "allow" allow_population_by_field_name = true aliases = "datamodel_codegen_aliases.json" formatters = ["ruff-check", "ruff-format"] +custom_file_header = "# generated by datamodel-codegen" +disable_timestamp = true [tool.uv] # Minimal defense against supply-chain atatcks. diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index be7a738d..068f6a25 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -1,6 +1,4 @@ -# generated by datamodel-codegen: -# filename: https://docs.apify.com/api/openapi.json -# timestamp: 2026-04-09T08:30:29+00:00 +# generated by datamodel-codegen from __future__ import annotations