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

Add isort to our linting toolkit #14

Merged
merged 4 commits into from
Nov 4, 2020
Merged

Add isort to our linting toolkit #14

merged 4 commits into from
Nov 4, 2020

Conversation

velovix
Copy link
Member

@velovix velovix commented Oct 24, 2020

This adds isort to our CI pipeline, which checks the order and format of imports. Developers can use isort to automatically do import sorting for them, and a section on this is now in the README. We configure isort to use the "black" profile, which should prevent any disagreements on import formatting between the two tools. However, in CI, we always run black last to give it the final say on formatting.

@velovix velovix requested review from BryceBeagle, BestDriverCN and apockill and removed request for BryceBeagle October 24, 2020 21:45
Copy link
Member

@BryceBeagle BryceBeagle left a comment

Choose a reason for hiding this comment

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

You may want to re-run isort after merging in the other PR 😉

@velovix
Copy link
Member Author

velovix commented Oct 25, 2020

Oh, yeah, good call! It should be ready to merge now, in that respect.

@velovix velovix merged commit 840827d into master Nov 4, 2020
@velovix velovix deleted the add-isort branch November 4, 2020 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants