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

Fix and add CI checks for autoflake, isort #1049

Closed
wants to merge 4 commits into from
Closed

Conversation

lalten
Copy link
Contributor

@lalten lalten commented Oct 8, 2022

autoflake cleans up unused imports and useless pass statements.
isort manages import sorting.

I configured the profiles that would have the smallest diff and seemed most reasonable.

The really interesting part (IMO) is the addition of these as a GitHub Actions CI job that should prevent non-conforming code from being added and hence keep a more consistent code style in the repo.


This change is Reviewable

@glados-verma
Copy link
Collaborator

Thanks for the PR, I agree these cleanups are important. I am enabling internal tooling to look for these and additional lint violations, and closing this PR. Also #1198 cleans up existing unused imports and I'll make another PR to fix the import ordering.

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