From d8f1fb0ece34dddff76ec994c373c9edcc47e5da Mon Sep 17 00:00:00 2001 From: huangpixu Date: Mon, 9 Dec 2024 19:57:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20job/init.py=E6=81=A2=E5=A4=8D=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E3=80=81=E6=9B=B4=E6=96=B0isort=E7=89=88=E6=9C=AC=20#?= =?UTF-8?q?7625?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 10 +++++----- .../components/collections/sites/open/job/__init__.py | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00d10dbaa..6458b6728 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ -default_stages: [pre-commit] +default_stages: [commit] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v2.1.0 hooks: - id: check-merge-conflict - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 22.8.0 hooks: - id: black language_version: python3.11.10 @@ -13,13 +13,13 @@ repos: rev: 5.13.2 hooks: - id: isort - args: ["--profile", "black"] + args: ["--profile", "black", "--filter-files"] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.1.0 hooks: - id: flake8 - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.19.0 + rev: v9.11.0 hooks: - id: commitlint stages: [commit-msg] diff --git a/pipeline_plugins/components/collections/sites/open/job/__init__.py b/pipeline_plugins/components/collections/sites/open/job/__init__.py index 72af03623..339100ff9 100644 --- a/pipeline_plugins/components/collections/sites/open/job/__init__.py +++ b/pipeline_plugins/components/collections/sites/open/job/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# isort: skip_file """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. @@ -15,13 +16,13 @@ __group_name__ = _("作业平台(JOB)") -from .all_biz_execute_job_plan import * # noqa -from .all_biz_fast_execute_script import * # noqa -from .all_biz_fast_push_file import * # noqa from .base import JobService, Jobv3Service # noqa from .cron_task import * # noqa from .execute_task import * # noqa from .fast_execute_script import * # noqa from .fast_push_file import * # noqa -from .local_content_upload import * # noqa from .push_local_files import * # noqa +from .local_content_upload import * # noqa +from .all_biz_fast_push_file import * # noqa +from .all_biz_fast_execute_script import * # noqa +from .all_biz_execute_job_plan import * # noqa