diff --git a/more_math/AudioMathNode.py b/more_math/AudioMathNode.py index 1d329bf..89ba0be 100644 --- a/more_math/AudioMathNode.py +++ b/more_math/AudioMathNode.py @@ -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 diff --git a/more_math/ConditioningMathNode.py b/more_math/ConditioningMathNode.py index d84973c..cbfccf4 100644 --- a/more_math/ConditioningMathNode.py +++ b/more_math/ConditioningMathNode.py @@ -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 diff --git a/more_math/ImageMathNode.py b/more_math/ImageMathNode.py index 5f7dd34..688ec20 100644 --- a/more_math/ImageMathNode.py +++ b/more_math/ImageMathNode.py @@ -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 diff --git a/more_math/LatentMathNode.py b/more_math/LatentMathNode.py index 42dfa9a..2dddb80 100644 --- a/more_math/LatentMathNode.py +++ b/more_math/LatentMathNode.py @@ -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, diff --git a/more_math/Parser/MathExprLexer.py b/more_math/Parser/MathExprLexer.py index 9817a61..5301283 100644 --- a/more_math/Parser/MathExprLexer.py +++ b/more_math/Parser/MathExprLexer.py @@ -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: diff --git a/more_math/Parser/MathExprParser.py b/more_math/Parser/MathExprParser.py index c416cd1..71a54fc 100644 --- a/more_math/Parser/MathExprParser.py +++ b/more_math/Parser/MathExprParser.py @@ -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: diff --git a/more_math/Parser/UnifiedMathVisitor.py b/more_math/Parser/UnifiedMathVisitor.py index a491a8c..3143c4d 100644 --- a/more_math/Parser/UnifiedMathVisitor.py +++ b/more_math/Parser/UnifiedMathVisitor.py @@ -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): diff --git a/more_math/VideoMathNode.py b/more_math/VideoMathNode.py index 1b20986..4479458 100644 --- a/more_math/VideoMathNode.py +++ b/more_math/VideoMathNode.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 5effd9a..1637b0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]