diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 2544cec0..46528079 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -24,7 +24,7 @@ jobs: run: | sudo apt-get update sudo apt-get install libgl1-mesa-glx -y - python -m pip install --upgrade pip + python -m pip install pip==24.0 python -m pip install pylint python -m pip install ${{github.workspace}}/examples/resources/third_party/* python -m pip install -r ${{github.workspace}}/requirements.txt diff --git a/core/cmd/obj/benchmarkingjob.py b/core/cmd/obj/benchmarkingjob.py index 5938d74b..fcaed727 100644 --- a/core/cmd/obj/benchmarkingjob.py +++ b/core/cmd/obj/benchmarkingjob.py @@ -1,3 +1,4 @@ +# pylint: disable=R0801 # Copyright 2022 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_active_boost.py b/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_active_boost.py index 7277f60a..e3eee1fc 100644 --- a/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_active_boost.py +++ b/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_active_boost.py @@ -1,11 +1,19 @@ +# pylint: disable=C0301 +# pylint: disable=C0114 +# pylint: disable=C0115 +# pylint: disable=W0246 +# pylint: disable=R1725 +# pylint: disable=R1732 +# pylint: disable=R0913 +# pylint: disable=R0801 import json import os +import os.path as osp from core.common.constant import ParadigmType from examples.yaoba.singletask_learning_boost.resource.utils.infer_and_error import infer_anno, merge_predict_results, \ compute_error, gen_txt_according_json, get_new_train_json from examples.yaoba.singletask_learning_boost.resource.utils.transform_unkonwn import aug_image_bboxes from .singletask_learning import SingleTaskLearning -import os.path as osp class SingleTaskLearningACBoost(SingleTaskLearning): diff --git a/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_tta.py b/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_tta.py index e7b6f53a..ecda45b1 100644 --- a/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_tta.py +++ b/core/testcasecontroller/algorithm/paradigm/singletask_learning/singletask_learning_tta.py @@ -1,3 +1,11 @@ +# pylint: disable=C0114 +# pylint: disable=E0401 +# pylint: disable=C0115 +# pylint: disable=W0246 +# pylint: disable=R1725 +# pylint: disable=R1732 +# pylint: disable=C0103 +# pylint: disable=R0801 import json import os import torch