Skip to content

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

Merged
dhruvmanila merged 1 commit intomainfrom
dhruv/workspace-settings-index
Aug 7, 2024
Merged

Use struct instead of type alias for workspace settings index#12726
dhruvmanila merged 1 commit intomainfrom
dhruv/workspace-settings-index

Conversation

@dhruvmanila
Copy link
Copy Markdown
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
@codspeed-hq
Copy link
Copy Markdown

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
@github-actions
Copy link
Copy Markdown
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
Copy Markdown
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
@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