Skip to content

Commit a4287b0

Browse files
authored
fix ruff version (#85)
* fix ruff version * lint
1 parent e48b7f1 commit a4287b0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ruff.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v4
8-
- uses: astral-sh/ruff-action@v1
8+
- uses: astral-sh/ruff-action@v2
9+
with:
10+
version: "0.8.4"

autointent/metrics/scoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def scoring_neg_coverage(labels: LABELS_VALUE_TYPE, scores: SCORES_VALUE_TYPE) -
247247

248248
def scoring_neg_ranking_loss(labels: LABELS_VALUE_TYPE, scores: SCORES_VALUE_TYPE) -> float:
249249
"""
250-
supports multilabel.
250+
Supports multilabel.
251251
252252
Compute the average number of label pairs that are incorrectly ordered given y_score
253253
weighted by the size of the label set and the number of labels not in the label set.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ hydra-core = "^1.3.2"
4646
faiss-cpu = "^1.9.0"
4747
openai = "^1.52.1"
4848
datasets = "^3.1.0"
49-
ruff = "^0.8.0"
49+
ruff = "==0.8.4"
5050
xxhash = "^3.5.0"
5151

5252
[tool.poetry.group.dev]

0 commit comments

Comments
 (0)