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

chore: lint and format using black and isort #46

Merged
merged 1 commit into from
Dec 29, 2021
Merged

Conversation

swiatekm
Copy link

@swiatekm swiatekm commented Dec 29, 2021

Make formatting and import ordering consistent by using black and isort. I had to split the requirements file, as black doesn't actually run on Python 2, though it does format Python 2 files. This meant that the lint and test jobs in GHA had to run with different dependencies installed.

@swiatekm swiatekm requested a review from a team as a code owner December 29, 2021 09:19
Copy link

@pmalek-sumo pmalek-sumo left a comment

Choose a reason for hiding this comment

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

Tests are failing :(

setup.cfg Outdated Show resolved Hide resolved
@swiatekm swiatekm force-pushed the ci/formatting branch 4 times, most recently from 7e51f89 to b37b5df Compare December 29, 2021 10:25
@swiatekm
Copy link
Author

Tests are failing :(

They had an implicit dependency on particular import ordering. I made it explicit.

@swiatekm swiatekm merged commit 978a6ec into main Dec 29, 2021
@swiatekm swiatekm deleted the ci/formatting branch December 29, 2021 11:55
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