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

Update ruff to 0.1.13, enable more rules, fix issues #7061

Merged
merged 6 commits into from Feb 1, 2024

Conversation

akx
Copy link
Contributor

@akx akx commented Jan 18, 2024

Description

This PR updates Ruff from 0.1.7 to 0.1.13, enables a handful more rules and fixes the resulting issues.

The ARG rules will prevent copy-paste typo bugs and brainfarts, since you'll instantly notice whether you've missed using an argument you might actually want to use.

@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented Jan 18, 2024

🪼 branch checks and previews

Name Status URL
Spaces building...
Website ready! Website preview
Storybook ready! Storybook preview
Visual tests building...
🦄 Changes detected! Details

@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented Jan 18, 2024

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
@gradio/preview minor
@gradio/wasm minor
gradio minor
gradio_client minor
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Update ruff to 0.1.13, enable more rules, fix issues

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@akx akx marked this pull request as draft January 18, 2024 14:07
@akx akx force-pushed the update-ruff branch 4 times, most recently from 9ebcd46 to 6339112 Compare January 18, 2024 18:57
@akx akx marked this pull request as ready for review January 18, 2024 19:02
@akx akx force-pushed the update-ruff branch 2 times, most recently from 7327a4b to 12aa811 Compare January 31, 2024 12:48
@akx
Copy link
Contributor Author

akx commented Jan 31, 2024

Rebased. Could e.g. @abidlabs take a look?

@abidlabs
Copy link
Member

abidlabs commented Feb 1, 2024

Much appreciated @akx. Went through all of the changes and the look good to me!

@abidlabs abidlabs merged commit 05d8a3c into gradio-app:main Feb 1, 2024
9 checks passed
@pngwn pngwn mentioned this pull request Feb 1, 2024
aliabid94 pushed a commit that referenced this pull request Feb 4, 2024
* add changeset

* Update ruff to version 0.1.13

* Correct ruff target version

* Enable more Ruff rules and fix issues

* Enable ARG and fix issues

* Enable PL lints, fix issues

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
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.

None yet

3 participants