Skip to content

Commit 444530e

Browse files
Fix breaking changes due to updated pydantic dependency
Signed-off-by: Jacob Stopak <[email protected]>
1 parent 0a9b2d3 commit 444530e

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

git_sim/settings.py

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
import pathlib
2-
from typing import List, Union
2+
from typing import List, Union, ClassVar
33

4-
from pydantic import BaseSettings
4+
from pydantic_settings import BaseSettings
55

66
from git_sim.enums import StyleOptions, ColorByOptions, ImgFormat, VideoFormat
77

88

99
class Settings(BaseSettings):
10-
allow_no_commits = False
11-
animate = False
12-
auto_open = True
13-
n_default = 5
14-
n = 5
10+
allow_no_commits: bool = False
11+
animate: bool = False
12+
auto_open: bool = True
13+
n_default: int = 5
14+
n: int = 5
1515
files: Union[List[pathlib.Path], None] = None
16-
hide_first_tag = False
16+
hide_first_tag: bool = False
1717
img_format: ImgFormat = ImgFormat.JPG
18-
INFO_STRING = "Simulating: git"
19-
light_mode = False
20-
transparent_bg = False
21-
logo = pathlib.Path(__file__).parent.resolve() / "logo.png"
22-
low_quality = False
23-
max_branches_per_commit = 1
24-
max_tags_per_commit = 1
25-
media_dir = pathlib.Path().cwd()
26-
outro_bottom_text = "Learn more at initialcommit.com"
27-
outro_top_text = "Thanks for using Initial Commit!"
28-
reverse = False
29-
show_intro = False
30-
show_outro = False
31-
speed = 1.5
32-
title = "Git-Sim, by initialcommit.com"
18+
INFO_STRING: str = "Simulating: git"
19+
light_mode: bool = False
20+
transparent_bg: bool = False
21+
logo: pathlib.Path = pathlib.Path(__file__).parent.resolve() / "logo.png"
22+
low_quality: bool = False
23+
max_branches_per_commit: int = 1
24+
max_tags_per_commit: int = 1
25+
media_dir: pathlib.Path = pathlib.Path().cwd()
26+
outro_bottom_text: str = "Learn more at initialcommit.com"
27+
outro_top_text: str = "Thanks for using Initial Commit!"
28+
reverse: bool = False
29+
show_intro: bool = False
30+
show_outro: bool = False
31+
speed: float = 1.5
32+
title: str = "Git-Sim, by initialcommit.com"
3333
video_format: VideoFormat = VideoFormat.MP4
34-
stdout = False
35-
output_only_path = False
36-
quiet = False
37-
invert_branches = False
38-
hide_merged_branches = False
39-
all = False
34+
stdout: bool = False
35+
output_only_path: bool = False
36+
quiet: bool = False
37+
invert_branches: bool = False
38+
hide_merged_branches: bool = False
39+
all: bool = False
4040
color_by: Union[ColorByOptions, None] = None
41-
highlight_commit_messages = False
41+
highlight_commit_messages: bool = False
4242
style: Union[StyleOptions, None] = StyleOptions.CLEAN
4343

4444
class Config:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"manim",
2727
"opencv-python-headless",
2828
"typer",
29-
"pydantic",
29+
"pydantic_settings",
3030
"git-dummy",
3131
],
3232
keywords="git sim simulation simulate git-simulate git-simulation git-sim manim animation gitanimation image video dryrun dry-run",

0 commit comments

Comments
 (0)