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

Ruff update + strictening #3979

Merged
merged 19 commits into from
Apr 28, 2023
Merged

Ruff update + strictening #3979

merged 19 commits into from
Apr 28, 2023

Conversation

akx
Copy link
Contributor

@akx akx commented Apr 26, 2023

Description

This PR removes some of the ignores left in the ruff config in #3710, making the configuration stricter (thus catching more bugs).

It fixes those issues where possible, and adds a couple of noqas where it was hard to tell what would be the right fix.

Each commit is quite atomic and can be reviewed separately.

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

@gradio-pr-bot
Copy link
Collaborator

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

@akx akx force-pushed the ruff-ext2 branch 4 times, most recently from 0ec50ca to dd25f00 Compare April 27, 2023 05:53
@akx akx marked this pull request as ready for review April 27, 2023 06:19
@akx akx mentioned this pull request Apr 27, 2023
7 tasks
@akx akx marked this pull request as draft April 27, 2023 19:54
@akx akx marked this pull request as ready for review April 28, 2023 05:53
Copy link
Member

@abidlabs abidlabs left a comment

Choose a reason for hiding this comment

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

Great PR, @akx! Thanks for cleaning up so many disparate issues. LGTM

Will merge once we can get CI green

@abidlabs
Copy link
Member

Will merge as flaky tests are unrelated and are also happening on main

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