Skip to content

Commit 451d620

Browse files
committed
fix pydantic fields after merge
1 parent 3e85fb7 commit 451d620

1 file changed

Lines changed: 24 additions & 20 deletions

File tree

src/somesy/core/models.py

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -161,30 +161,34 @@ def at_least_one_target(cls, values):
161161
bool, Field(description="Show debug messages on run (-vvv flag).")
162162
] = False
163163

164-
input_file: Path = Field(
165-
Path("somesy.toml"), description="Project metadata input file path."
166-
)
164+
input_file: Annotated[
165+
Path, Field(description="Project metadata input file path.")
166+
] = Path("somesy.toml")
167167

168-
no_sync_pyproject: bool = Field(
169-
False, description="Do not sync with pyproject.toml."
170-
)
171-
pyproject_file: Path = Field(
172-
Path("pyproject.toml"), description="pyproject.toml file path."
173-
)
168+
no_sync_pyproject: Annotated[
169+
bool, Field(description="Do not sync with pyproject.toml.")
170+
] = False
171+
pyproject_file: Annotated[
172+
Path, Field(description="pyproject.toml file path.")
173+
] = Path("pyproject.toml")
174174

175-
no_sync_package_json: bool = Field(
176-
False, description="Do not sync with package.json."
177-
)
178-
package_json_file: Path = Field(
179-
Path("package.json"), description="package.json file path."
180-
)
175+
no_sync_package_json: Annotated[
176+
bool, Field(description="Do not sync with package.json.")
177+
] = False
178+
package_json_file: Annotated[
179+
Path, Field(description="package.json file path.")
180+
] = Path("package.json")
181181

182-
no_sync_cff: bool = Field(False, description="Do not sync with CFF.")
183-
cff_file: Path = Field(Path("CITATION.cff"), description="CFF file path.")
182+
no_sync_cff: Annotated[bool, Field(description="Do not sync with CFF.")] = False
183+
cff_file: Annotated[Path, Field(description="CFF file path.")] = Path(
184+
"CITATION.cff"
185+
)
184186

185-
no_sync_codemeta: bool = Field(False, description="Do not sync with codemeta.json.")
186-
codemeta_file: Path = Field(
187-
Path("codemeta.json"), description="codemeta.json file path."
187+
no_sync_codemeta: Annotated[
188+
bool, Field(description="Do not sync with codemeta.json.")
189+
] = False
190+
codemeta_file: Annotated[Path, Field(description="codemeta.json file path.")] = (
191+
Path("codemeta.json"),
188192
)
189193

190194
def log_level(self) -> SomesyLogLevel:

0 commit comments

Comments
 (0)