Skip to content

Modify CI to check for unused imports#2555

Merged
freddyaboulton merged 3 commits into
mainfrom
2503-check-unused-python-imports
Oct 28, 2022
Merged

Modify CI to check for unused imports#2555
freddyaboulton merged 3 commits into
mainfrom
2503-check-unused-python-imports

Conversation

@freddyaboulton
Copy link
Copy Markdown
Collaborator

@freddyaboulton freddyaboulton commented Oct 27, 2022

Description

Fixes #2503

No changelog since it's not a user facing change

Checklist:

  • I have performed a self-review of my own code
  • I have added a short summary of my change to the CHANGELOG.md
  • My code follows the style guidelines of this project
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

A note about the CHANGELOG

Hello 👋 and thank you for contributing to Gradio!

All pull requests must update the change log located in CHANGELOG.md, unless the pull request is labeled with the "no-changelog-update" label.

Please add a brief summary of the change to the Upcoming Release > Full Changelog section of the CHANGELOG.md file and include
a link to the PR (formatted in markdown) and a link to your github profile (if you like). For example, "* Added a cool new feature by [@myusername](link-to-your-github-profile) in [PR 11111](https://github.com/gradio-app/gradio/pull/11111)".

If you would like to elaborate on your change further, feel free to include a longer explanation in the other sections.
If you would like an image/gif/video showcasing your feature, it may be best to edit the CHANGELOG file using the
GitHub web UI since that lets you upload files directly via drag-and-drop.

@github-actions
Copy link
Copy Markdown
Contributor

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2555-all-demos

@freddyaboulton freddyaboulton marked this pull request as ready for review October 27, 2022 19:00
@freddyaboulton freddyaboulton requested review from abidlabs, aliabd, aliabid94, dawoodkhan82 and pngwn and removed request for abidlabs October 27, 2022 19:00
Comment thread gradio/blocks.py
import warnings
import webbrowser
from tkinter import N
from types import ModuleType
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yikes good catch, linter!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I know, this one was my favorite 😂

@abidlabs
Copy link
Copy Markdown
Member

Thanks for the nice addition to the CI @freddyaboulton! LGTM

@freddyaboulton freddyaboulton merged commit e0a55df into main Oct 28, 2022
@freddyaboulton freddyaboulton deleted the 2503-check-unused-python-imports branch October 28, 2022 14:56
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.

Modify lint check to fail when there are unused imports in the backend

2 participants