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 #71

Merged
merged 6 commits into from
Feb 29, 2024
Merged

Update ruff #71

merged 6 commits into from
Feb 29, 2024

Conversation

clefourrier
Copy link
Member

@clefourrier clefourrier commented Feb 27, 2024

We need this (or a lower bound instead) to allow compatibility between lighteval and the gradio leaderboard template spaces

NathanHB
NathanHB previously approved these changes Feb 28, 2024
Copy link
Member

@NathanHB NathanHB left a comment

Choose a reason for hiding this comment

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

Might need to update the github action as well

@NathanHB NathanHB dismissed their stale review February 28, 2024 12:04

is the CI working with the new version ?

@clefourrier
Copy link
Member Author

Will update the CI!

@@ -24,7 +24,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ruff==v0.1.2
python setup.py egg_info
Copy link
Member Author

@clefourrier clefourrier Feb 28, 2024

Choose a reason for hiding this comment

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

This new mechanism

  1. builds a requirement.txt file from the pytoml
  2. extracts the mandatory requirements (optional reqs make the file buggy)
  3. installs ruff using the version in the mandatory requirements, that way we no longer need to update this file when we change the pytoml, it will move on the go :)

Copy link
Member Author

Choose a reason for hiding this comment

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

(-c = constraint file in pip)

@clefourrier clefourrier requested a review from NathanHB February 28, 2024 18:01
@clefourrier clefourrier merged commit 030945b into main Feb 29, 2024
2 checks passed
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.

2 participants