Skip to content

Commit eec3d8b

Browse files
committed
ruff
1 parent 8cc0c33 commit eec3d8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/codegen/git/repo_operator/local_repo_operator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from functools import cached_property
3-
from typing import Self, override, Optional
3+
from typing import Self, override
44

55
from codeowners import CodeOwners as CodeOwnersParser
66
from git import Remote
@@ -109,19 +109,19 @@ def create_from_repo(cls, repo_path: str, url: str) -> Self:
109109
except Exception:
110110
# If any git operations fail, fallback to fresh clone
111111
pass
112-
112+
113113
# If we get here, repo exists but is not up to date or valid
114114
# Remove the existing directory to do a fresh clone
115115
import shutil
116116
shutil.rmtree(repo_path)
117-
117+
118118
# Do a fresh clone with depth=1 to get latest commit
119119
GitCLI.clone_from(url=url, to_path=repo_path, depth=1)
120-
120+
121121
# Initialize with the cloned repo
122122
git_cli = GitCLI(repo_path)
123123
default_branch = git_cli.active_branch.name
124-
124+
125125
return cls(repo_config=BaseRepoConfig(), repo_path=repo_path, default_branch=default_branch, bot_commit=False)
126126

127127
####################################################################################################################

0 commit comments

Comments
 (0)