Skip to content

Commit

Permalink
chore: Autoformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 authored and github-actions[bot] committed Jun 18, 2024
1 parent d9a36bf commit a074ed3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/vbl_aquarium/generate_cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/vbl_aquarium/models/unity.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/vbl_aquarium/models/urchin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from vbl_aquarium.models.unity import Color, Vector2, Vector3
from vbl_aquarium.utils.vbl_base_model import VBLBaseModel


# CustomAtlas


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a074ed3

Please sign in to comment.