This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Add isort
and a corresponding CI check
#533
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PSalant726
added
enhancement
New feature or request
maintenance
Refactoring or ongoing maintenance work
dev experience
Enhancements to the overall DX
run unsafe ci checks
Triggers running of unsafe CI checks
dependencies
Pull requests that update a dependency file
Tech Debt
labels
May 18, 2022
PSalant726
added
run unsafe ci checks
Triggers running of unsafe CI checks
and removed
run unsafe ci checks
Triggers running of unsafe CI checks
labels
May 18, 2022
sanders41
suggested changes
May 19, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good idea to add. It will make code reviews less noisy.
sanders41
reviewed
May 19, 2022
The `make isort` target will also fix errors, and is intended to be used locally. The `make isort-ci` target will only alert on errors.
sanders41
approved these changes
May 19, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
sanders41
pushed a commit
that referenced
this pull request
Sep 22, 2022
* Sort `dev-requirements` alphabetically * Add `isort`, configuration, `make` target * Execute `isort` to sort unsorted imports * Update `CHANGELOG.md` * Differentiate `make isort` and `make isort-ci` The `make isort` target will also fix errors, and is intended to be used locally. The `make isort-ci` target will only alert on errors. * Sort unsorted imports
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
dependencies
Pull requests that update a dependency file
dev experience
Enhancements to the overall DX
enhancement
New feature or request
maintenance
Refactoring or ongoing maintenance work
run unsafe ci checks
Triggers running of unsafe CI checks
Tech Debt
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Import ordering is unenforced, and frequently messy. This leads to large and often unrelated diffs for engineers who automatically "organize imports on save" in their IDE.
Changes
isort
as adev-requirement
isort
as a CI checkisort
to automatically organize all imports:Checklist
CHANGELOG.md
file in appropriate sectionsRun Unsafe PR Checks
label has been applied, and checks have passed, if this PR touches any external servicesTicket
Fixes #532