Skip to content

Ruff update + strictening#3979

Merged
abidlabs merged 19 commits into
gradio-app:mainfrom
akx:ruff-ext2
Apr 28, 2023
Merged

Ruff update + strictening#3979
abidlabs merged 19 commits into
gradio-app:mainfrom
akx:ruff-ext2

Conversation

@akx

@akx akx commented Apr 26, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@abidlabs abidlabs left a comment

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.

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

Will merge once we can get CI green

@abidlabs

Copy link
Copy Markdown
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