File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
import pathlib
2
- from pydantic import BaseSettings
2
+ from pydantic_settings import BaseSettings
3
3
4
4
5
5
class Settings (BaseSettings ):
6
- name = "dummy"
7
- git_dir = pathlib .Path ().cwd ()
8
- commits = 5
9
- branches = 1
10
- diverge_at = 0
11
- merge = ""
12
- no_subdir = False
13
- constant_sha = False
6
+ name : str = "dummy"
7
+ git_dir : pathlib . Path = pathlib .Path ().cwd ()
8
+ commits : int = 5
9
+ branches : int = 1
10
+ diverge_at : int = 0
11
+ merge : str = ""
12
+ no_subdir : bool = False
13
+ constant_sha : bool = False
14
14
15
15
class Config :
16
16
env_prefix = "git_dummy_"
Original file line number Diff line number Diff line change 22
22
install_requires = [
23
23
"gitpython" ,
24
24
"typer" ,
25
- "pydantic " ,
25
+ "pydantic_settings " ,
26
26
],
27
27
keywords = "git dummy generate populate repo repository" ,
28
28
project_urls = {
You can’t perform that action at this time.
0 commit comments