Skip to content

Commit 9747eca

Browse files
Fix breaking changes due to updated pydantic dependency
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 6e09acc commit 9747eca

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

git_dummy/settings.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import pathlib
2-
from pydantic import BaseSettings
2+
from pydantic_settings import BaseSettings
33

44

55
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
1414

1515
class Config:
1616
env_prefix = "git_dummy_"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
install_requires=[
2323
"gitpython",
2424
"typer",
25-
"pydantic",
25+
"pydantic_settings",
2626
],
2727
keywords="git dummy generate populate repo repository",
2828
project_urls={

0 commit comments

Comments
 (0)