mirror of https://github.com/Bing-su/adetailer.git
style: ignore PLC0415 rule
parent
55bb8117a6
commit
702fb41a72
|
|
@ -22,7 +22,7 @@ def ultralytics_predict(
|
||||||
device: str = "",
|
device: str = "",
|
||||||
classes: str = "",
|
classes: str = "",
|
||||||
) -> PredictOutput[float]:
|
) -> PredictOutput[float]:
|
||||||
from ultralytics import YOLO # noqa: PLC0415
|
from ultralytics import YOLO
|
||||||
|
|
||||||
model = YOLO(model_path)
|
model = YOLO(model_path)
|
||||||
apply_classes(model, model_path, classes)
|
apply_classes(model, model_path, classes)
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ select = [
|
||||||
"UP",
|
"UP",
|
||||||
"W",
|
"W",
|
||||||
]
|
]
|
||||||
ignore = ["B905", "E501", "PLR2004", "PLW0603"]
|
ignore = ["B905", "E501", "PLC0415", "PLR2004", "PLW0603"]
|
||||||
unfixable = ["F401"]
|
unfixable = ["F401"]
|
||||||
|
|
||||||
[tool.ruff.lint.isort]
|
[tool.ruff.lint.isort]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue