Skip to content

Commit

Permalink
Fix and enforce all ruff W rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Jan 1, 2025
1 parent c0338a4 commit 79eea51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions comfy/ldm/modules/sub_quadratic_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
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

Expand Down
4 changes: 1 addition & 3 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 79eea51

Please sign in to comment.