Skip to content
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

Refactor: use Settings struct #7665

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

bluthej
Copy link
Contributor

@bluthej bluthej commented Sep 26, 2023

Summary

Pass around a Settings struct instead of individual members to simplify function signatures and to make it easier to add new settings.

This PR was suggested in this comment.

Note on the choices

I chose which functions to modify based on which seem most likely to use new settings, but suggestions on my choices are welcome!

Pass around a `Settings` struct instead of individual members to
simplify function signatures and to make it easier to add new settings.
@github-actions
Copy link
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@charliermarsh charliermarsh added the internal An internal refactor or improvement label Sep 26, 2023
@zanieb zanieb merged commit ee53333 into astral-sh:main Sep 26, 2023
@bluthej bluthej deleted the pass-settings-struct branch September 26, 2023 20:28
@charliermarsh
Copy link
Member

Thanks @bluthej, welcome to the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants