-
Notifications
You must be signed in to change notification settings - Fork 109
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
Update ruff #71
Conversation
There was a problem hiding this 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
is the CI working with the new version ?
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new mechanism
- builds a requirement.txt file from the pytoml
- extracts the mandatory requirements (optional reqs make the file buggy)
- 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 :)
There was a problem hiding this comment.
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)
We need this (or a lower bound instead) to allow compatibility between lighteval and the gradio leaderboard template spaces