Skip to content

Commit 1b4ead5

Browse files
committed
Address ruff
1 parent f6b5f73 commit 1b4ead5

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

chia/_tests/util/test_priority_mutex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def sane(requests: list[Request]) -> bool:
381381
return False
382382

383383
ordered = sorted(requests)
384-
return all(a.before(b) for a, b in zip(ordered, ordered[1:]))
384+
return all(a.before(b) for a, b in itertools.pairwise(ordered))
385385

386386

387387
@dataclass

chia/cmds/cmd_classes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import dataclasses
66
import inspect
77
import pathlib
8-
import sys
98
from dataclasses import MISSING, dataclass, field, fields
109
from typing import (
1110
Any,

chia/wallet/wallet_request_types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import sys
43
from dataclasses import dataclass, field
54
from typing import Any, BinaryIO, Optional, final
65

ruff.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ ignore = [
9999
"S101", # assert
100100
"S404", # suspicious-subprocess-import
101101
"S607", # start-process-with-partial-path
102+
103+
# TODO: Remove these - it's a lot of errors
104+
"UP045",
105+
"UP007",
106+
"UP035"
102107
]
103108

104109
[lint.per-file-ignores]

0 commit comments

Comments
 (0)