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