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

Use struct instead of type alias for workspace settings index #12726

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

dhruvmanila
Copy link
Member

Summary

Follow-up from #12725, this is just a small refactor to use a wrapper struct instead of type alias for workspace settings index. This avoids the need to have the register_workspace_settings as a static method on Index and instead is a method on the new struct itself.

@dhruvmanila dhruvmanila added the internal An internal refactor or improvement label Aug 7, 2024
Copy link

codspeed-hq bot commented Aug 7, 2024

CodSpeed Performance Report

Merging #12726 will not alter performance

Comparing dhruv/workspace-settings-index (8adf81d) with main (7fcfedd)

Summary

✅ 32 untouched benchmarks

@dhruvmanila dhruvmanila force-pushed the dhruv/ignore-non-workspace-url branch from bed704f to 5cbbbf6 Compare August 7, 2024 05:29
@dhruvmanila dhruvmanila force-pushed the dhruv/workspace-settings-index branch from 0efbde4 to 1a8fd7f Compare August 7, 2024 05:29
Copy link
Contributor

github-actions bot commented Aug 7, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

I like it

Base automatically changed from dhruv/ignore-non-workspace-url to main August 7, 2024 09:15
@dhruvmanila dhruvmanila force-pushed the dhruv/workspace-settings-index branch from 1a8fd7f to 8adf81d Compare August 7, 2024 09:22
@dhruvmanila dhruvmanila enabled auto-merge (squash) August 7, 2024 09:22
@dhruvmanila dhruvmanila merged commit 037e817 into main Aug 7, 2024
17 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/workspace-settings-index branch August 7, 2024 09:27
dylwil3 pushed a commit to dylwil3/ruff that referenced this pull request Aug 7, 2024
…-sh#12726)

## Summary

Follow-up from astral-sh#12725, this is
just a small refactor to use a wrapper struct instead of type alias for
workspace settings index. This avoids the need to have the
`register_workspace_settings` as a static method on `Index` and instead
is a method on the new struct itself.
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.

2 participants