Skip to content

Refactor: use Settings struct#7665

Merged
zanieb merged 1 commit intoastral-sh:mainfrom
bluthej:pass-settings-struct
Sep 26, 2023
Merged

Refactor: use Settings struct#7665
zanieb merged 1 commit intoastral-sh:mainfrom
bluthej:pass-settings-struct

Conversation

@bluthej
Copy link
Copy Markdown
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
Copy Markdown
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

Copy link
Copy Markdown
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
Copy Markdown
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