fix ruff + ignore errors in auto-generated files
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import torch
|
||||
from .helper_functions import generate_dim_variables, getIndexTensorAlongDim, comonLazy, eval_tensor_expr, make_zero_like, as_tensor
|
||||
from .helper_functions import generate_dim_variables, getIndexTensorAlongDim, eval_tensor_expr, as_tensor
|
||||
|
||||
from comfy_api.latest import io
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from inspect import cleandoc
|
||||
import torch
|
||||
|
||||
from .helper_functions import comonLazy, eval_tensor_expr, generate_dim_variables, make_zero_like, as_tensor
|
||||
from .helper_functions import comonLazy, eval_tensor_expr, generate_dim_variables, as_tensor
|
||||
|
||||
from comfy_api.latest import io
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import torch
|
||||
from .helper_functions import generate_dim_variables, getIndexTensorAlongDim, comonLazy, eval_tensor_expr, make_zero_like, as_tensor
|
||||
from .helper_functions import generate_dim_variables, getIndexTensorAlongDim, eval_tensor_expr, as_tensor
|
||||
|
||||
from comfy_api.latest import io
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import torch
|
||||
from .helper_functions import (
|
||||
generate_dim_variables,
|
||||
getIndexTensorAlongDim,
|
||||
comonLazy,
|
||||
parse_expr,
|
||||
eval_tensor_expr_with_tree,
|
||||
make_zero_like,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# Generated from ./MathExpr.g4 by ANTLR 4.13.2
|
||||
from antlr4 import *
|
||||
from io import StringIO
|
||||
import sys
|
||||
|
||||
if sys.version_info[1] > 5:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Generated from ./MathExpr.g4 by ANTLR 4.13.2
|
||||
# encoding: utf-8
|
||||
from antlr4 import *
|
||||
from io import StringIO
|
||||
import sys
|
||||
|
||||
if sys.version_info[1] > 5:
|
||||
|
||||
@@ -2,7 +2,7 @@ import torch
|
||||
import math
|
||||
import torch.nn.functional as F
|
||||
from .MathExprVisitor import MathExprVisitor
|
||||
from ..helper_functions import generate_dim_variables, getIndexTensorAlongDim
|
||||
from ..helper_functions import generate_dim_variables
|
||||
|
||||
|
||||
class UnifiedMathVisitor(MathExprVisitor):
|
||||
|
||||
@@ -4,7 +4,6 @@ from comfy_api.latest import io
|
||||
from comfy_api.input_impl import VideoFromComponents
|
||||
from comfy_api.util import VideoComponents
|
||||
|
||||
import torch
|
||||
|
||||
from .helper_functions import generate_dim_variables, getIndexTensorAlongDim, eval_tensor_expr, make_zero_like
|
||||
|
||||
|
||||
@@ -82,3 +82,6 @@ select = [
|
||||
|
||||
[tool.ruff.lint.flake8-quotes]
|
||||
inline-quotes = "double"
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"more_math/Parser/*.py" = ["F401", "F403", "F405"]
|
||||
|
||||
Reference in New Issue
Block a user