blenderの環境依存によるlintエラーを抑制

This commit is contained in:
Keisuke Hirata 2026-02-22 16:36:20 +09:00
parent be65abc6b0
commit dc41327cea
2 changed files with 20 additions and 20 deletions

View File

@ -8,7 +8,7 @@ only to masked regions of a video strip.
def create_mask_blur_node_tree( def create_mask_blur_node_tree(
name: str = "FaceMaskBlur", name: str = "FaceMaskBlur",
blur_size: int = 50, blur_size: int = 50,
) -> "bpy.types.NodeTree": ) -> "bpy.types.NodeTree": # noqa: F821
""" """
Create a compositing node tree for mask-based blur. Create a compositing node tree for mask-based blur.
@ -107,10 +107,10 @@ def create_mask_blur_node_tree(
def setup_strip_compositor_modifier( def setup_strip_compositor_modifier(
strip: "bpy.types.Strip", strip: "bpy.types.Strip", # noqa: F821
mask_strip: "bpy.types.Strip", mask_strip: "bpy.types.Strip", # noqa: F821
node_tree: "bpy.types.NodeTree", node_tree: "bpy.types.NodeTree", # noqa: F821
) -> "bpy.types.SequenceModifier": ) -> "bpy.types.SequenceModifier": # noqa: F821
""" """
Add a Compositor modifier to a strip using the mask-blur node tree. Add a Compositor modifier to a strip using the mask-blur node tree.
@ -148,7 +148,7 @@ def setup_strip_compositor_modifier(
return modifier return modifier
def get_or_create_blur_node_tree(blur_size: int = 50) -> "bpy.types.NodeTree": def get_or_create_blur_node_tree(blur_size: int = 50) -> "bpy.types.NodeTree": # noqa: F821
""" """
Get existing or create new blur node tree with specified blur size. Get existing or create new blur node tree with specified blur size.

View File

@ -31,25 +31,25 @@ def fix_library_path():
# Fix library path BEFORE any other imports # Fix library path BEFORE any other imports
fix_library_path() fix_library_path()
import queue import queue # noqa: E402
import threading import threading # noqa: E402
import uuid import uuid # noqa: E402
import traceback import traceback # noqa: E402
import subprocess import subprocess # noqa: E402
from typing import Dict, Optional, List from typing import Dict, Optional, List # noqa: E402
from pathlib import Path from pathlib import Path # noqa: E402
from fastapi import FastAPI, HTTPException, BackgroundTasks from fastapi import FastAPI, HTTPException, BackgroundTasks # noqa: E402
from pydantic import BaseModel from pydantic import BaseModel # noqa: E402
import uvicorn import uvicorn # noqa: E402
import cv2 import cv2 # noqa: E402
import numpy as np import numpy as np # noqa: E402
import msgpack import msgpack # noqa: E402
# Add project root to path for imports if needed # Add project root to path for imports if needed
sys.path.append(str(Path(__file__).parent.parent)) sys.path.append(str(Path(__file__).parent.parent))
from server.detector import get_detector from server.detector import get_detector # noqa: E402
app = FastAPI(title="Face Mask Inference Server") app = FastAPI(title="Face Mask Inference Server")