Skip to content

Lint with black and isort #61

Merged
jonathangreen merged 4 commits intomainfrom
feature/lint
Nov 12, 2021
Merged

Lint with black and isort #61
jonathangreen merged 4 commits intomainfrom
feature/lint

Conversation

@jonathangreen
Copy link
Member

Description

Similar to ThePalaceProject/circulation-core#22 this PR adds a linting step to our CI pipeline. The bulk of this PR is automatic reformatting done by isort and black.

This PR also removes old migrations. Some of them did not parse in Python 3 which was causing Black to fail in its linting. Seemed easier to remove them then make the changes to make them work in Python 3. I don't think we need to carry around these old migration files anyway.

Motivation and Context

Bring circulation into line with these PRs:
ThePalaceProject/circulation-core#22
ThePalaceProject/library-registry#23

Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

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

LGTM!

Caveat: I took a good look at the new GH workflow, the updated tox.ini, and a sampling of the linted files. I spot checked in another sample of files.

@jonathangreen jonathangreen merged commit 1933d02 into main Nov 12, 2021
@jonathangreen jonathangreen deleted the feature/lint branch November 12, 2021 23:39
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.

2 participants