mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-03-11 08:20:04 +00:00
style: ignore PLC0415 rule
This commit is contained in:
@@ -22,7 +22,7 @@ def ultralytics_predict(
|
||||
device: str = "",
|
||||
classes: str = "",
|
||||
) -> PredictOutput[float]:
|
||||
from ultralytics import YOLO # noqa: PLC0415
|
||||
from ultralytics import YOLO
|
||||
|
||||
model = YOLO(model_path)
|
||||
apply_classes(model, model_path, classes)
|
||||
|
||||
@@ -74,7 +74,7 @@ select = [
|
||||
"UP",
|
||||
"W",
|
||||
]
|
||||
ignore = ["B905", "E501", "PLR2004", "PLW0603"]
|
||||
ignore = ["B905", "E501", "PLC0415", "PLR2004", "PLW0603"]
|
||||
unfixable = ["F401"]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
|
||||
Reference in New Issue
Block a user