From a074ed323d2ac3033ce2eb5c087424ed149b1d19 Mon Sep 17 00:00:00 2001 From: kjy5 Date: Tue, 18 Jun 2024 16:25:03 +0000 Subject: [PATCH] chore: Autoformat code --- src/vbl_aquarium/generate_cs.py | 2 +- src/vbl_aquarium/models/unity.py | 1 - src/vbl_aquarium/models/urchin.py | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/vbl_aquarium/generate_cs.py b/src/vbl_aquarium/generate_cs.py index 930e8a5..5e497f5 100644 --- a/src/vbl_aquarium/generate_cs.py +++ b/src/vbl_aquarium/generate_cs.py @@ -2,7 +2,7 @@ from typing import get_args, get_origin -from pydantic.alias_generators import to_camel, to_snake, to_pascal +from pydantic.alias_generators import to_camel, to_pascal, to_snake from vbl_aquarium.models import unity from vbl_aquarium.utils.common import get_classes diff --git a/src/vbl_aquarium/models/unity.py b/src/vbl_aquarium/models/unity.py index 4682e4e..1adc200 100644 --- a/src/vbl_aquarium/models/unity.py +++ b/src/vbl_aquarium/models/unity.py @@ -1,5 +1,4 @@ from pydantic import BaseModel, Field -from typing_extensions import Annotated # Unity models don't get generated as .cs files since they exist in UnityEngine diff --git a/src/vbl_aquarium/models/urchin.py b/src/vbl_aquarium/models/urchin.py index be82852..30c087c 100644 --- a/src/vbl_aquarium/models/urchin.py +++ b/src/vbl_aquarium/models/urchin.py @@ -7,7 +7,6 @@ from vbl_aquarium.models.unity import Color, Vector2, Vector3 from vbl_aquarium.utils.vbl_base_model import VBLBaseModel - # CustomAtlas @@ -53,8 +52,9 @@ class CameraMode(IntEnum): target: Vector3 = None zoom: float = 16 pan: Vector2 = Vector2() - mode: CameraMode = Field(default=CameraMode.orthographic, - json_schema_extra={"enum_keys": list(CameraMode.__members__.keys())}) + mode: CameraMode = Field( + default=CameraMode.orthographic, json_schema_extra={"enum_keys": list(CameraMode.__members__.keys())} + ) background_color: Color = Color() # white by default controllable: bool = True main: bool = False