Skip to content

feat: Add setup_commands to repo_config #1050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
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