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

MNT Upgrade ruff version to ~0.4.8 #1851

Merged

Conversation

BenjaminBossan
Copy link
Member

We currently use ruff v0.2.2, which is quite far behind the latest version. This has the disadvantage that new contributors will often install the latest version of ruff and then get CI errors, even though they ran make style.

With this update, the discrepancy should go away. But if we merge this, all contributors may have to update their PRs. This is annoying but I think we need to do this sooner or later.

Here is the full list of changes:

  • bump ruff version to ~0.4.8
  • update the ruff commands in Makefile (ruff foo/ -> ruff check foo/)
  • update coding style of two files that changed with the new ruff version

We currently use ruff v0.2.2, which is quite far behind the latest
version. This has the disadvantage that new contributors will often
install the latest version of ruff and then get CI errors, even though
they ran `make style`.

With this update, the discrepancy should go away. But if we merge this,
all contributors may have to update their PRs. This is annoying but I
think we need to do this sooner or later.

Here is the full list of changes:

- bump ruff version to ~0.4.8
- update the ruff commands in Makefile (ruff foo/ -> ruff check foo/)
- update coding style of two files that changed with the new ruff
  version
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

Thanks for updating ruff version !

@BenjaminBossan BenjaminBossan merged commit 8843a76 into huggingface:main Jun 12, 2024
14 checks passed
@BenjaminBossan BenjaminBossan deleted the mnt-upgrade-ruff-version branch June 12, 2024 13:01
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