Skip to content

Commit 302f7c8

Browse files
committed
fix: resolve all ruff errors
1 parent f5bd972 commit 302f7c8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ include = ["src*"]
5656
target-version = "py310"
5757
line-length = 100
5858
src = ["src", "tests"]
59+
60+
[tool.ruff.lint]
5961
select = [
6062
"E", # pycodestyle errors
6163
"W", # pycodestyle warnings
@@ -94,7 +96,7 @@ ignore = [
9496
"ERA001", # Commented-out code (useful for documentation in tests)
9597
]
9698

97-
[tool.ruff.isort]
99+
[tool.ruff.lint.isort]
98100
known-first-party = ["src"]
99101

100102
[tool.mypy]

src/reviewer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import json
1010
import logging
1111
from collections import Counter
12-
from typing import Any
12+
from typing import Any, ClassVar
1313

1414
from src.domain import Attempt, ErrorType, ExampleResult, Task
1515
from src.executor import ExecutionResult, JQExecutor
@@ -39,7 +39,7 @@ class AlgorithmicReviewer:
3939
"""
4040

4141
# Error type priority for selecting primary error (higher index = higher priority)
42-
_ERROR_PRIORITY: dict[ErrorType, int] = {
42+
_ERROR_PRIORITY: ClassVar[dict[ErrorType, int]] = {
4343
ErrorType.NONE: 0,
4444
ErrorType.ORDER: 1,
4545
ErrorType.MISSING_EXTRA: 2,

0 commit comments

Comments
 (0)