Skip to content

Commit 0c5a8fc

Browse files
authored
Update ruff (#71)
We need this (or a lower bound instead) to allow compatibility between lighteval and the gradio leaderboard template spaces
1 parent 0745e9a commit 0c5a8fc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/quality.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
python -m pip install ruff==v0.1.2
27+
python setup.py egg_info
28+
sed '/^$/q' src/lighteval.egg-info/requires.txt > src/lighteval.egg-info/requires_lite.txt
29+
python -m pip install ruff -c src/lighteval.egg-info/requires_lite.txt
30+
rm -rf src/lighteval.egg-info
2831
- name: Code quality
2932
run: |
3033
make quality

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies = [
7373
"protobuf==3.20.*", # pinned for sentencepiece compat
7474
"pycountry",
7575
# Code style
76-
"ruff==v0.1.2",
76+
"ruff==v0.2.2",
7777
]
7878

7979
[project.optional-dependencies]

0 commit comments

Comments
 (0)