Skip to content

Use ruff, not pycln, for removing unused imports #10498

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

Merged
merged 1 commit into from
Jul 22, 2023

Conversation

AlexWaygood
Copy link
Member

Pycln pins its dependencies very tightly, which is annoying when you want to install all your tools into a single environment, as we do, and has caused us minor issues in the past. It's currently blocking us from upgrading to the latest version of pytype (see #10344 (comment)), which in turn is blocking us from updating our typing_extensions stubs.

Ruff also provides this autofix functionality, so let's stop using pycln and just enable the relevant ruff rule in CI.

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