Unified Configuration File in TOML Format #1174
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Introduction: Unified Configuration File in TOML Format
Feature Description
Based on issue #1165, this PR introduces a unified configuration file in TOML format for the gpt-engineer project. This file will centralize various project settings, including:
The configuration file will be persistent on disk and presented to users upon each application run, with an option to bypass opening the file while being notified of its existence and purpose.
Motivation and Application
The project manages configurations through multiple files, complicating maintenance and user experience. A unified configuration file will simplify management, enhance maintainability, and provide a consistent method for setting and reviewing configurations. The TOML format ensures readability and ease of use.
Implementation Plan
config.toml
: Located in the project root directory, loaded at the start ofgpte
execution.project_config.py
: Adapted to parse the new configuration.file_selector.py
: Remove the part for old linting option.steps.py
: Get or set the configs in the main function when needed.