Added static check at PR CI (#3921)

### What problem does this PR solve?

Added static check at PR CI

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Refactoring
This commit is contained in:
Zhichang Yu
2024-12-08 21:23:51 +08:00
committed by GitHub
parent 0d68a6cd1b
commit 1254ecf445
24 changed files with 146 additions and 140 deletions

View File

@ -18,7 +18,7 @@ import os
from huggingface_hub import snapshot_download
from api.utils.file_utils import get_project_base_directory
from .operators import *
from .operators import * # noqa: F403
import math
import numpy as np
import cv2

View File

@ -23,7 +23,8 @@ import onnxruntime as ort
from huggingface_hub import snapshot_download
from api.utils.file_utils import get_project_base_directory
from .operators import *
from .operators import * # noqa: F403
from .operators import preprocess
class Recognizer(object):
def __init__(self, label_list, task_name, model_dir=None):