diff --git a/secureli/repositories/settings.py b/secureli/repositories/settings.py index 3ec3d615..80d3f37d 100644 --- a/secureli/repositories/settings.py +++ b/secureli/repositories/settings.py @@ -101,7 +101,7 @@ class PreCommitRepo(BaseModel): Repo settings for pre-commit. """ - url: str = Field(validation_alias="repo", serialization_alias="repo") + url: str = Field(alias="repo") rev: str hooks: list[PreCommitHook] = Field(default=[]) suppressed_hook_ids: list[str] = Field(default=[]) diff --git a/tests/abstractions/test_pre_commit.py b/tests/abstractions/test_pre_commit.py index 6fbbd8e5..65c60790 100644 --- a/tests/abstractions/test_pre_commit.py +++ b/tests/abstractions/test_pre_commit.py @@ -23,7 +23,7 @@ def settings_dict() -> dict: return PreCommitSettings( repos=[ PreCommitRepo( - url="http://example-repo.com/", + repo="http://example-repo.com/", rev="master", hooks=[ PreCommitHook( diff --git a/tests/actions/test_scan_action.py b/tests/actions/test_scan_action.py index 37234f63..ba58dd39 100644 --- a/tests/actions/test_scan_action.py +++ b/tests/actions/test_scan_action.py @@ -36,7 +36,7 @@ def mock_pre_commit() -> MagicMock: mock_pre_commit.get_pre_commit_config.return_value = PreCommitSettings( repos=[ PreCommitRepo( - url="http://example-repo.com/", + repo="http://example-repo.com/", rev="master", hooks=[ PreCommitHook(