Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/codegen/git/schemas/repo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@
base_path: str | None = None # root directory of the codebase within the repo
subdirectories: list[str] | None = None

# Additional sandbox settings
setup_commands: list[str] | None = None

@classmethod
def from_envs(cls) -> "RepoConfig":
default_repo_config = RepositoryConfig()
return RepoConfig(
name=default_repo_config.name,
full_name=default_repo_config.full_name,
base_dir=os.path.dirname(default_repo_config.path),

Check failure on line 37 in src/codegen/git/schemas/repo_config.py

View workflow job for this annotation

GitHub Actions / mypy

error: Value of type variable "AnyOrLiteralStr" of "dirname" cannot be "str | None" [type-var]
language=ProgrammingLanguage(default_repo_config.language.upper()),

Check failure on line 38 in src/codegen/git/schemas/repo_config.py

View workflow job for this annotation

GitHub Actions / mypy

error: Item "None" of "str | None" has no attribute "upper" [union-attr]
)

@classmethod
Expand Down
Loading