Fix and enforce all ruff W rules.

This commit is contained in:
comfyanonymous 2025-01-01 03:08:33 -05:00
parent c0338a46a4
commit 79eea51a1d
2 changed files with 4 additions and 6 deletions

View File

@ -17,10 +17,10 @@ import math
import logging
try:
from typing import Optional, NamedTuple, List, Protocol
from typing import Optional, NamedTuple, List, Protocol
except ImportError:
from typing import Optional, NamedTuple, List
from typing_extensions import Protocol
from typing import Optional, NamedTuple, List
from typing_extensions import Protocol
from typing import List

View File

@ -5,9 +5,7 @@ lint.ignore = ["ALL"]
lint.select = [
"S307", # suspicious-eval-usage
"T201", # print-usage
"W291",
"W292",
"W293",
"W",
# The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names.
# See all rules here: https://docs.astral.sh/ruff/rules/#pyflakes-f
"F",