-
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathsettings.py
More file actions
47 lines (37 loc) · 1.07 KB
/
Copy pathsettings.py
File metadata and controls
47 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import pathlib
from enum import Enum
from typing import List, Union
from pydantic import BaseSettings
class VideoFormat(str, Enum):
mp4 = "mp4"
webm = "webm"
class ImgFormat(str, Enum):
jpg = "jpg"
png = "png"
class Settings(BaseSettings):
allow_no_commits = False
animate = False
auto_open = True
commits = 5
files: Union[List[pathlib.Path], None] = None
hide_first_tag = False
img_format: ImgFormat = ImgFormat.jpg
INFO_STRING = "Simulating: git"
light_mode = False
logo = pathlib.Path(__file__).parent.resolve() / "logo.png"
low_quality = False
max_branches_per_commit = 1
max_tags_per_commit = 1
media_dir = pathlib.Path().cwd()
outro_bottom_text = "Learn more at initialcommit.com"
outro_top_text = "Thanks for using Initial Commit!"
reverse = False
show_intro = False
show_outro = False
speed = 1.5
title = "Git-Sim, by initialcommit.com"
video_format: VideoFormat = VideoFormat.mp4
stdout = False
class Config:
env_prefix = "git_sim_"
settings = Settings()