Skip to content

Auto-generate default settings.conf file#15737

Open
Angeloth1 wants to merge 10 commits intoQiskit:mainfrom
Angeloth1:settingsConfChecker
Open

Auto-generate default settings.conf file#15737
Angeloth1 wants to merge 10 commits intoQiskit:mainfrom
Angeloth1:settingsConfChecker

Conversation

@Angeloth1
Copy link

@Angeloth1 Angeloth1 commented Mar 2, 2026

  • I have added the tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

Summary

Adds auto-generation of the ~/.qiskit/settings.conf file. If the file does not already exist, the code safely creates the directory and the file, populating it with the default configurations commented out as a template.
Fixes #12539

Details and comments

  • Implemented the auto-generation logic inside qiskit/user_config.py.
  • Added the test_auto_generate_settings_conf unit test to verify directory/file creation and template content.
  • Added a release note using reno.

AI tool used: Gemini 3.1 Pro

@qiskit-bot qiskit-bot added the Community PR PRs from contributors that are not 'members' of the Qiskit repo label Mar 2, 2026
@CLAassistant
Copy link

CLAassistant commented Mar 2, 2026

CLA assistant check
All committers have signed the CLA.

@Angeloth1 Angeloth1 changed the title [WIP] Auto-generate default settings.conf file Auto-generate default settings.conf file Mar 4, 2026
@Angeloth1 Angeloth1 marked this pull request as ready for review March 4, 2026 10:58
@Angeloth1 Angeloth1 requested a review from a team as a code owner March 4, 2026 10:58
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@Angeloth1
Copy link
Author

Hey @Qiskit/terra-core . Just checking in, does the script look okay to you, or do I need to update it in any way? Thank you for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PR PRs from contributors that are not 'members' of the Qiskit repo

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Auto generate settings.conf if it does not exist

3 participants