From 6c43be247f658452b6a65ea939ce6a2876457668 Mon Sep 17 00:00:00 2001 From: konstantin Date: Fri, 15 Nov 2024 11:05:09 +0100 Subject: [PATCH] fix: add `--output-datetime-class AwareDatetime` to datamodel-codegen (#27) this was a regression introduced by datamodel-codengen bump Co-authored-by: Konstantin --- src/maloident/v1/_autogenerated.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maloident/v1/_autogenerated.py b/src/maloident/v1/_autogenerated.py index 98d60fc..999dc25 100644 --- a/src/maloident/v1/_autogenerated.py +++ b/src/maloident/v1/_autogenerated.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: openapi.yml -# timestamp: 2024-10-02T12:07:18+00:00 +# timestamp: 2024-11-15T10:02:37+00:00 from __future__ import annotations diff --git a/tox.ini b/tox.ini index c16f2e0..411319f 100644 --- a/tox.ini +++ b/tox.ini @@ -75,7 +75,7 @@ deps = .[formatting] .[codegen] commands = - datamodel-codegen --encoding utf-8 --input openapi/v1/openapi.yml --output src/maloident/v1/_autogenerated.py --input-file-type openapi --output-model-type pydantic_v2.BaseModel + datamodel-codegen --encoding utf-8 --input openapi/v1/openapi.yml --output src/maloident/v1/_autogenerated.py --input-file-type openapi --output-model-type pydantic_v2.BaseModel --output-datetime-class AwareDatetime black src/maloident/v1/_autogenerated.py isort src/maloident/v1/_autogenerated.py