Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

don't auto-organize imports #1357

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Conversation

xavdid-stripe
Copy link
Member

@xavdid-stripe xavdid-stripe commented Jul 6, 2024

Minor VSCode settings tweak to reduce noise in PRs.

I like auto-formatted imports, but our imports are not currently sorted (as far as VSCode is concerned). I was finding that auto-sorting added a lot of noise to PRs when I was working in unsorted files. Plus, this is a VS-code specific operation, so if team members use a different editor, imports would be unsorted until a VSCode user happened to work on the same file.

A better solution would ruff to handle the import sorting, which all editors (and tooling) will pick up and help us maintain. But that's slightly more involved, so short term I figured disabling the behavior was simpler.

If you want to sort imports manually, you can still run VSCode's Organize Imports command.

@xavdid-stripe xavdid-stripe requested review from a team and prathmesh-stripe and removed request for a team July 6, 2024 00:38
@xavdid-stripe xavdid-stripe enabled auto-merge (squash) July 6, 2024 00:38
@xavdid-stripe xavdid-stripe disabled auto-merge July 6, 2024 01:07
@xavdid-stripe xavdid-stripe merged commit 2686322 into master Jul 6, 2024
15 checks passed
@xavdid-stripe xavdid-stripe deleted the settings-update-2024-07-05 branch July 6, 2024 01:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants