From 35684a82a430e459362aab5bcdd79480cbb25ddd Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Tue, 2 Apr 2024 14:03:27 +0800 Subject: [PATCH] Rename pre-commit scripts, drop pre_commit_ prefix (#38667) We don't reference those scripts only by name anywhere (always by the full path or the pre-commit ID). The pre-commit part is already evident from them being inside a pre_commit directory. This makes paths shorter and those files a bit easier to browse in a file browser (including ls). (cherry picked from commit 725a9b6cabcf8b6814de883db361eca6f58fd16b) --- .github/workflows/ci-image-build.yml | 2 +- .github/workflows/prod-image-build.yml | 2 +- .pre-commit-config.yaml | 182 +++++++++--------- README.md | 2 +- contributing-docs/05_pull_requests.rst | 2 +- dev/README_RELEASE_AIRFLOW.md | 4 +- .../commands/ci_image_commands.py | 2 +- .../airflow_breeze/utils/md5_build_check.py | 2 +- docs/apache-airflow/database-erd-ref.rst | 2 +- .../installation/supported-versions.rst | 2 +- docs/apache-airflow/migrations-ref.rst | 2 +- ....py => base_operator_partial_arguments.py} | 0 ...mmit_boring_cyborg.py => boring_cyborg.py} | 0 ..._breeze_cmd_line.py => breeze_cmd_line.py} | 0 ..._duplicates.py => changelog_duplicates.py} | 0 ...commit_chart_schema.py => chart_schema.py} | 0 ...ional.py => check_aiobotocore_optional.py} | 0 ...y => check_airflow_bug_report_template.py} | 0 ..._used.py => check_airflow_k8s_not_used.py} | 0 ...ck_cncf_k8s_used_for_k8s_executor_only.py} | 0 ...ency.py => check_common_sql_dependency.py} | 0 ...default.py => check_deferrable_default.py} | 0 ...ges_ref.py => check_extra_packages_ref.py} | 0 ...imports.py => check_google_re2_imports.py} | 0 ...nit_in_tests.py => check_init_in_tests.py} | 0 ...ons_list.py => check_integrations_list.py} | 0 ..._lazy_logging.py => check_lazy_logging.py} | 0 ...mmit_check_license.py => check_license.py} | 0 ...as.py => check_order_dockerfile_extras.py} | 0 ...ch_build.py => check_order_hatch_build.py} | 0 ...mit_hooks.py => check_pre_commit_hooks.py} | 0 ...> check_provider_airflow_compatibility.py} | 0 ...rovider_docs.py => check_provider_docs.py} | 0 ..._files.py => check_provider_yaml_files.py} | 0 ...viders_init.py => check_providers_init.py} | 0 ...ck_providers_subpackages_all_have_init.py} | 0 ..._system_tests.py => check_system_tests.py} | 0 ... => check_system_tests_hidden_in_index.py} | 0 ...ers.py => check_tests_in_right_folders.py} | 2 +- ...dentials.py => checkout_no_credentials.py} | 0 ...le_www_assets.py => compile_www_assets.py} | 0 ...ssets_dev.py => compile_www_assets_dev.py} | 0 ...orator_operator_implements_custom_name.py} | 0 ..._param_type.py => docstring_param_type.py} | 0 ...agrams.py => generate_airflow_diagrams.py} | 0 ...pypi_readme.py => generate_pypi_readme.py} | 0 .../{pre_commit_helm_lint.py => helm_lint.py} | 0 ..._docker.py => inline_scripts_in_docker.py} | 0 ...mmit_insert_extras.py => insert_extras.py} | 0 ...e_commit_json_schema.py => json_schema.py} | 0 ...e_commit_kubeconform.py => kubeconform.py} | 0 ..._lint_dockerfile.py => lint_dockerfile.py} | 0 ...ocal_yml_mounts.py => local_yml_mounts.py} | 0 ...on_reference.py => migration_reference.py} | 0 .../{pre_commit_mypy.py => mypy.py} | 0 ...e_commit_mypy_folder.py => mypy_folder.py} | 0 ...n.py => new_session_in_provide_session.py} | 0 ...mmit_newsfragments.py => newsfragments.py} | 0 ...haracters.py => replace_bad_characters.py} | 0 ...e_commit_ruff_format.py => ruff_format.py} | 0 ...ort_in_the_wild.py => sort_in_the_wild.py} | 0 ...oviders.py => sort_installed_providers.py} | 0 ..._wordlist.py => sort_spelling_wordlist.py} | 0 ...rted_versions.py => supported_versions.py} | 0 ...it_decorator.py => sync_init_decorator.py} | 0 ...y_sync.py => template_context_key_sync.py} | 0 ...ttest_testcase.py => unittest_testcase.py} | 0 ...ack_version.py => update_black_version.py} | 0 ...g_hash.py => update_breeze_config_hash.py} | 0 ...encies.py => update_build_dependencies.py} | 0 ...encies.py => update_chart_dependencies.py} | 0 ...tubs.py => update_common_sql_api_stubs.py} | 0 ...ate_er_diagram.py => update_er_diagram.py} | 0 ..._paths.py => update_example_dags_paths.py} | 0 ...ate_installers.py => update_installers.py} | 0 ...es.py => update_providers_dependencies.py} | 0 ...> update_providers_dependencies.py.md5sum} | 0 ...e_epoch.py => update_source_date_epoch.py} | 0 ..._update_versions.py => update_versions.py} | 0 ...ors_init.py => validate_operators_init.py} | 0 ...on_schema.py => vendor_k8s_json_schema.py} | 0 ...sion_heads_map.py => version_heads_map.py} | 2 +- .../{pre_commit_www_lint.py => www_lint.py} | 0 83 files changed, 104 insertions(+), 104 deletions(-) rename scripts/ci/pre_commit/{pre_commit_base_operator_partial_arguments.py => base_operator_partial_arguments.py} (100%) rename scripts/ci/pre_commit/{pre_commit_boring_cyborg.py => boring_cyborg.py} (100%) rename scripts/ci/pre_commit/{pre_commit_breeze_cmd_line.py => breeze_cmd_line.py} (100%) rename scripts/ci/pre_commit/{pre_commit_changelog_duplicates.py => changelog_duplicates.py} (100%) rename scripts/ci/pre_commit/{pre_commit_chart_schema.py => chart_schema.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_aiobotocore_optional.py => check_aiobotocore_optional.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_airflow_bug_report_template.py => check_airflow_bug_report_template.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_airflow_k8s_not_used.py => check_airflow_k8s_not_used.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_cncf_k8s_used_for_k8s_executor_only.py => check_cncf_k8s_used_for_k8s_executor_only.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_common_sql_dependency.py => check_common_sql_dependency.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_deferrable_default.py => check_deferrable_default.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_extra_packages_ref.py => check_extra_packages_ref.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_google_re2_imports.py => check_google_re2_imports.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_init_in_tests.py => check_init_in_tests.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_integrations_list.py => check_integrations_list.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_lazy_logging.py => check_lazy_logging.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_license.py => check_license.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_order_dockerfile_extras.py => check_order_dockerfile_extras.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_order_hatch_build.py => check_order_hatch_build.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_pre_commit_hooks.py => check_pre_commit_hooks.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_provider_airflow_compatibility.py => check_provider_airflow_compatibility.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_provider_docs.py => check_provider_docs.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_provider_yaml_files.py => check_provider_yaml_files.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_providers_init.py => check_providers_init.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_providers_subpackages_all_have_init.py => check_providers_subpackages_all_have_init.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_system_tests.py => check_system_tests.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_system_tests_hidden_in_index.py => check_system_tests_hidden_in_index.py} (100%) rename scripts/ci/pre_commit/{pre_commit_check_tests_in_right_folders.py => check_tests_in_right_folders.py} (96%) rename scripts/ci/pre_commit/{pre_commit_checkout_no_credentials.py => checkout_no_credentials.py} (100%) rename scripts/ci/pre_commit/{pre_commit_compile_www_assets.py => compile_www_assets.py} (100%) rename scripts/ci/pre_commit/{pre_commit_compile_www_assets_dev.py => compile_www_assets_dev.py} (100%) rename scripts/ci/pre_commit/{pre_commit_decorator_operator_implements_custom_name.py => decorator_operator_implements_custom_name.py} (100%) rename scripts/ci/pre_commit/{pre_commit_docstring_param_type.py => docstring_param_type.py} (100%) rename scripts/ci/pre_commit/{pre_commit_generate_airflow_diagrams.py => generate_airflow_diagrams.py} (100%) rename scripts/ci/pre_commit/{pre_commit_generate_pypi_readme.py => generate_pypi_readme.py} (100%) rename scripts/ci/pre_commit/{pre_commit_helm_lint.py => helm_lint.py} (100%) rename scripts/ci/pre_commit/{pre_commit_inline_scripts_in_docker.py => inline_scripts_in_docker.py} (100%) rename scripts/ci/pre_commit/{pre_commit_insert_extras.py => insert_extras.py} (100%) rename scripts/ci/pre_commit/{pre_commit_json_schema.py => json_schema.py} (100%) rename scripts/ci/pre_commit/{pre_commit_kubeconform.py => kubeconform.py} (100%) rename scripts/ci/pre_commit/{pre_commit_lint_dockerfile.py => lint_dockerfile.py} (100%) rename scripts/ci/pre_commit/{pre_commit_local_yml_mounts.py => local_yml_mounts.py} (100%) rename scripts/ci/pre_commit/{pre_commit_migration_reference.py => migration_reference.py} (100%) rename scripts/ci/pre_commit/{pre_commit_mypy.py => mypy.py} (100%) rename scripts/ci/pre_commit/{pre_commit_mypy_folder.py => mypy_folder.py} (100%) rename scripts/ci/pre_commit/{pre_commit_new_session_in_provide_session.py => new_session_in_provide_session.py} (100%) rename scripts/ci/pre_commit/{pre_commit_newsfragments.py => newsfragments.py} (100%) rename scripts/ci/pre_commit/{pre_commit_replace_bad_characters.py => replace_bad_characters.py} (100%) rename scripts/ci/pre_commit/{pre_commit_ruff_format.py => ruff_format.py} (100%) rename scripts/ci/pre_commit/{pre_commit_sort_in_the_wild.py => sort_in_the_wild.py} (100%) rename scripts/ci/pre_commit/{pre_commit_sort_installed_providers.py => sort_installed_providers.py} (100%) rename scripts/ci/pre_commit/{pre_commit_sort_spelling_wordlist.py => sort_spelling_wordlist.py} (100%) rename scripts/ci/pre_commit/{pre_commit_supported_versions.py => supported_versions.py} (100%) rename scripts/ci/pre_commit/{pre_commit_sync_init_decorator.py => sync_init_decorator.py} (100%) rename scripts/ci/pre_commit/{pre_commit_template_context_key_sync.py => template_context_key_sync.py} (100%) rename scripts/ci/pre_commit/{pre_commit_unittest_testcase.py => unittest_testcase.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_black_version.py => update_black_version.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_breeze_config_hash.py => update_breeze_config_hash.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_build_dependencies.py => update_build_dependencies.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_chart_dependencies.py => update_chart_dependencies.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_common_sql_api_stubs.py => update_common_sql_api_stubs.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_er_diagram.py => update_er_diagram.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_example_dags_paths.py => update_example_dags_paths.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_installers.py => update_installers.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_providers_dependencies.py => update_providers_dependencies.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_providers_dependencies.py.md5sum => update_providers_dependencies.py.md5sum} (100%) rename scripts/ci/pre_commit/{pre_commit_update_source_date_epoch.py => update_source_date_epoch.py} (100%) rename scripts/ci/pre_commit/{pre_commit_update_versions.py => update_versions.py} (100%) rename scripts/ci/pre_commit/{pre_commit_validate_operators_init.py => validate_operators_init.py} (100%) rename scripts/ci/pre_commit/{pre_commit_vendor_k8s_json_schema.py => vendor_k8s_json_schema.py} (100%) rename scripts/ci/pre_commit/{pre_commit_version_heads_map.py => version_heads_map.py} (97%) rename scripts/ci/pre_commit/{pre_commit_www_lint.py => www_lint.py} (100%) diff --git a/.github/workflows/ci-image-build.yml b/.github/workflows/ci-image-build.yml index d98394c67e5b..07ba028cf713 100644 --- a/.github/workflows/ci-image-build.yml +++ b/.github/workflows/ci-image-build.yml @@ -155,7 +155,7 @@ ${{ inputs.do-build == 'true' && inputs.image-tag || '' }}" shell: bash run: | pip install rich>=12.4.4 pyyaml - python scripts/ci/pre_commit/pre_commit_update_providers_dependencies.py + python scripts/ci/pre_commit/update_providers_dependencies.py if: inputs.do-build == 'true' && inputs.upgrade-to-newer-dependencies != 'false' - name: "Start ARM instance" run: ./scripts/ci/images/ci_start_arm_instance_and_connect_to_docker.sh diff --git a/.github/workflows/prod-image-build.yml b/.github/workflows/prod-image-build.yml index 29e86305444b..d10034b95fc8 100644 --- a/.github/workflows/prod-image-build.yml +++ b/.github/workflows/prod-image-build.yml @@ -244,7 +244,7 @@ ${{ inputs.do-build == 'true' && inputs.image-tag || '' }}" shell: bash run: | pip install rich>=12.4.4 pyyaml - python scripts/ci/pre_commit/pre_commit_update_providers_dependencies.py + python scripts/ci/pre_commit/update_providers_dependencies.py if: inputs.do-build == 'true' && inputs.upgrade-to-newer-dependencies != 'false' - name: "Cleanup dist and context file" shell: bash diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d0a4bbfc019..db1bfa6fabfe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -169,15 +169,15 @@ repos: hooks: - id: update-common-sql-api-stubs name: Check and update common.sql API stubs - entry: ./scripts/ci/pre_commit/pre_commit_update_common_sql_api_stubs.py + entry: ./scripts/ci/pre_commit/update_common_sql_api_stubs.py language: python - files: ^scripts/ci/pre_commit/pre_commit_update_common_sql_api\.py|^airflow/providers/common/sql/.*\.pyi?$ + files: ^scripts/ci/pre_commit/update_common_sql_api\.py|^airflow/providers/common/sql/.*\.pyi?$ additional_dependencies: ['rich>=12.4.4', 'mypy==1.9.0', 'black==23.10.0', 'jinja2'] pass_filenames: false require_serial: true - id: update-black-version name: Update black versions everywhere (manual) - entry: ./scripts/ci/pre_commit/pre_commit_update_black_version.py + entry: ./scripts/ci/pre_commit/update_black_version.py stages: ['manual'] language: python files: ^.pre-commit-config.yaml$ @@ -186,28 +186,28 @@ repos: require_serial: true - id: update-build-dependencies name: Update build-dependencies to latest (manual) - entry: ./scripts/ci/pre_commit/pre_commit_update_build_dependencies.py + entry: ./scripts/ci/pre_commit/update_build_dependencies.py stages: ['manual'] language: python - files: ^.pre-commit-config.yaml$|^scripts/ci/pre_commit/pre_commit_update_build_dependencies.py$ + files: ^.pre-commit-config.yaml$|^scripts/ci/pre_commit/update_build_dependencies.py$ pass_filenames: false require_serial: true - id: update-installers name: Update installers to latest (manual) - entry: ./scripts/ci/pre_commit/pre_commit_update_installers.py + entry: ./scripts/ci/pre_commit/update_installers.py stages: ['manual'] language: python - files: ^.pre-commit-config.yaml$|^scripts/ci/pre_commit/pre_commit_update_installers.py$ + files: ^.pre-commit-config.yaml$|^scripts/ci/pre_commit/update_installers.py$ pass_filenames: false require_serial: true additional_dependencies: ['pyyaml', 'rich>=12.4.4', 'requests'] - id: update-chart-dependencies name: Update chart dependencies to latest (manual) - entry: ./scripts/ci/pre_commit/pre_commit_update_chart_dependencies.py + entry: ./scripts/ci/pre_commit/update_chart_dependencies.py stages: ['manual'] language: python additional_dependencies: ['pyyaml', 'rich>=12.4.4', 'requests'] - files: ^.pre-commit-config.yaml$|^scripts/ci/pre_commit/pre_commit_update_build_dependencies.py$ + files: ^.pre-commit-config.yaml$|^scripts/ci/pre_commit/update_build_dependencies.py$ pass_filenames: false require_serial: true - repo: https://github.com/asottile/blacken-docs @@ -323,7 +323,7 @@ repos: - id: validate-operators-init name: Prevent templated field logic checks in operators' __init__ language: python - entry: ./scripts/ci/pre_commit/pre_commit_validate_operators_init.py + entry: ./scripts/ci/pre_commit/validate_operators_init.py pass_filenames: true files: ^airflow/providers/.*/(operators|transfers|sensors)/.*\.py$ additional_dependencies: [ 'rich>=12.4.4' ] @@ -340,7 +340,7 @@ repos: - id: ruff-format name: Run 'ruff format' for extremely fast Python formatting description: "Run 'ruff format' for extremely fast Python formatting" - entry: ./scripts/ci/pre_commit/pre_commit_ruff_format.py + entry: ./scripts/ci/pre_commit/ruff_format.py language: python types_or: [python, pyi] args: [] @@ -349,7 +349,7 @@ repos: exclude: ^.*/.*_vendor/|^tests/dags/test_imports.py|^airflow/contrib/ - id: replace-bad-characters name: Replace bad characters - entry: ./scripts/ci/pre_commit/pre_commit_replace_bad_characters.py + entry: ./scripts/ci/pre_commit/replace_bad_characters.py language: python types: [file, text] exclude: ^.*/.*_vendor/|^clients/gen/go\.sh$|^\.gitmodules$ @@ -368,7 +368,7 @@ repos: - id: lint-dockerfile name: Lint Dockerfile language: python - entry: ./scripts/ci/pre_commit/pre_commit_lint_dockerfile.py + entry: ./scripts/ci/pre_commit/lint_dockerfile.py files: Dockerfile.*$ pass_filenames: true require_serial: true @@ -378,14 +378,14 @@ repos: files: ^airflow/.*\.py$ require_serial: true exclude: ^airflow/kubernetes/ - entry: ./scripts/ci/pre_commit/pre_commit_check_airflow_k8s_not_used.py + entry: ./scripts/ci/pre_commit/check_airflow_k8s_not_used.py additional_dependencies: ['rich>=12.4.4'] - id: check-airflow-providers-bug-report-template name: Check airflow-bug-report provider list is sorted/unique language: python files: ^.github/ISSUE_TEMPLATE/airflow_providers_bug_report\.yml$ require_serial: true - entry: ./scripts/ci/pre_commit/pre_commit_check_airflow_bug_report_template.py + entry: ./scripts/ci/pre_commit/check_airflow_bug_report_template.py additional_dependencies: ['rich>=12.4.4', 'pyyaml'] - id: check-cncf-k8s-only-for-executors name: Check cncf.kubernetes imports used for executors only @@ -393,18 +393,18 @@ repos: files: ^airflow/.*\.py$ require_serial: true exclude: ^airflow/kubernetes/|^airflow/providers/ - entry: ./scripts/ci/pre_commit/pre_commit_check_cncf_k8s_used_for_k8s_executor_only.py + entry: ./scripts/ci/pre_commit/check_cncf_k8s_used_for_k8s_executor_only.py additional_dependencies: ['rich>=12.4.4'] - id: check-airflow-provider-compatibility name: Check compatibility of Providers with Airflow - entry: ./scripts/ci/pre_commit/pre_commit_check_provider_airflow_compatibility.py + entry: ./scripts/ci/pre_commit/check_provider_airflow_compatibility.py language: python pass_filenames: true files: ^airflow/providers/.*\.py$ additional_dependencies: ['rich>=12.4.4'] - id: check-google-re2-as-dependency name: Check google-re2 is declared as dependency when needed - entry: ./scripts/ci/pre_commit/pre_commit_check_google_re2_imports.py + entry: ./scripts/ci/pre_commit/check_google_re2_imports.py language: python pass_filenames: true require_serial: true @@ -412,22 +412,22 @@ repos: additional_dependencies: ['rich>=12.4.4'] - id: update-local-yml-file name: Update mounts in the local yml file - entry: ./scripts/ci/pre_commit/pre_commit_local_yml_mounts.py + entry: ./scripts/ci/pre_commit/local_yml_mounts.py language: python files: ^dev/breeze/src/airflow_breeze/utils/docker_command_utils\.py$|^scripts/ci/docker_compose/local\.yml$ pass_filenames: false additional_dependencies: ['rich>=12.4.4'] - id: check-sql-dependency-common-data-structure name: Check dependency of SQL Providers with common data structure - entry: ./scripts/ci/pre_commit/pre_commit_check_common_sql_dependency.py + entry: ./scripts/ci/pre_commit/check_common_sql_dependency.py language: python files: ^airflow/providers/.*/hooks/.*\.py$ additional_dependencies: ['rich>=12.4.4', 'pyyaml', 'packaging'] - id: update-providers-dependencies name: Update dependencies for provider packages - entry: ./scripts/ci/pre_commit/pre_commit_update_providers_dependencies.py + entry: ./scripts/ci/pre_commit/update_providers_dependencies.py language: python - files: ^airflow/providers/.*\.py$|^airflow/providers/.*/provider\.yaml$|^tests/providers/.*\.py$|^tests/system/providers/.*\.py$|^scripts/ci/pre_commit/pre_commit_update_providers_dependencies\.py$ + files: ^airflow/providers/.*\.py$|^airflow/providers/.*/provider\.yaml$|^tests/providers/.*\.py$|^tests/system/providers/.*\.py$|^scripts/ci/pre_commit/update_providers_dependencies\.py$ pass_filenames: false additional_dependencies: ['setuptools', 'rich>=12.4.4', 'pyyaml', 'tomli'] - id: check-extra-packages-references @@ -436,57 +436,57 @@ repos: language: python files: ^docs/apache-airflow/extra-packages-ref\.rst$|^hatch_build.py pass_filenames: false - entry: ./scripts/ci/pre_commit/pre_commit_check_extra_packages_ref.py + entry: ./scripts/ci/pre_commit/check_extra_packages_ref.py additional_dependencies: ['rich>=12.4.4', 'hatchling==1.22.4', 'tabulate'] - id: check-hatch-build-order name: Check order of dependencies in hatch_build.py language: python files: ^hatch_build.py$ pass_filenames: false - entry: ./scripts/ci/pre_commit/pre_commit_check_order_hatch_build.py + entry: ./scripts/ci/pre_commit/check_order_hatch_build.py additional_dependencies: ['rich>=12.4.4', 'hatchling==1.22.4'] - id: update-extras name: Update extras in documentation - entry: ./scripts/ci/pre_commit/pre_commit_insert_extras.py + entry: ./scripts/ci/pre_commit/insert_extras.py language: python files: ^contributing-docs/12_airflow_dependencies_and_extras.rst$|^INSTALL$|^airflow/providers/.*/provider\.yaml$|^Dockerfile.* pass_filenames: false additional_dependencies: ['rich>=12.4.4', 'hatchling==1.22.4'] - id: check-extras-order name: Check order of extras in Dockerfile - entry: ./scripts/ci/pre_commit/pre_commit_check_order_dockerfile_extras.py + entry: ./scripts/ci/pre_commit/check_order_dockerfile_extras.py language: python files: ^Dockerfile$ pass_filenames: false additional_dependencies: ['rich>=12.4.4'] - id: generate-airflow-diagrams name: Generate airflow diagrams - entry: ./scripts/ci/pre_commit/pre_commit_generate_airflow_diagrams.py + entry: ./scripts/ci/pre_commit/generate_airflow_diagrams.py language: python files: ^docs/.*/diagram_[^/]*\.py$ pass_filenames: true additional_dependencies: ['rich>=12.4.4', "diagrams>=0.23.4"] - id: update-supported-versions name: Updates supported versions in documentation - entry: ./scripts/ci/pre_commit/pre_commit_supported_versions.py + entry: ./scripts/ci/pre_commit/supported_versions.py language: python - files: ^docs/apache-airflow/installation/supported-versions\.rst$|^scripts/ci/pre_commit/pre_commit_supported_versions\.py$|^README\.md$ + files: ^docs/apache-airflow/installation/supported-versions\.rst$|^scripts/ci/pre_commit/supported_versions\.py$|^README\.md$ pass_filenames: false additional_dependencies: ['tabulate'] - id: check-revision-heads-map name: Check that the REVISION_HEADS_MAP is up-to-date language: python - entry: ./scripts/ci/pre_commit/pre_commit_version_heads_map.py + entry: ./scripts/ci/pre_commit/version_heads_map.py pass_filenames: false files: > (?x) - ^scripts/ci/pre_commit/pre_commit_version_heads_map\.py$| + ^scripts/ci/pre_commit/version_heads_map\.py$| ^airflow/migrations/versions/.*$|^airflow/migrations/versions| ^airflow/utils/db.py$ additional_dependencies: ['packaging','google-re2'] - id: update-version name: Update version to the latest version in the documentation - entry: ./scripts/ci/pre_commit/pre_commit_update_versions.py + entry: ./scripts/ci/pre_commit/update_versions.py language: python files: ^docs|^airflow/__init__.py$ pass_filenames: false @@ -541,7 +541,7 @@ repos: - id: check-only-new-session-with-provide-session name: Check NEW_SESSION is only used with @provide_session language: python - entry: ./scripts/ci/pre_commit/pre_commit_new_session_in_provide_session.py + entry: ./scripts/ci/pre_commit/new_session_in_provide_session.py pass_filenames: true files: ^airflow/.+\.py$ - id: check-for-inclusive-language @@ -609,7 +609,7 @@ repos: ^docs/apache-airflow-providers-cncf-kubernetes/operators.rst$| ^docs/conf.py$| ^docs/exts/removemarktransform.py$| - ^scripts/ci/pre_commit/pre_commit_vendor_k8s_json_schema.py$| + ^scripts/ci/pre_commit/vendor_k8s_json_schema.py$| ^tests/| ^.pre-commit-config\.yaml$| ^.*CHANGELOG\.(rst|txt)$| @@ -620,13 +620,13 @@ repos: - id: check-base-operator-partial-arguments name: Check BaseOperator and partial() arguments language: python - entry: ./scripts/ci/pre_commit/pre_commit_base_operator_partial_arguments.py + entry: ./scripts/ci/pre_commit/base_operator_partial_arguments.py pass_filenames: false files: ^airflow/models/(?:base|mapped)operator\.py$ - id: check-init-decorator-arguments name: Check model __init__ and decorator arguments are in sync language: python - entry: ./scripts/ci/pre_commit/pre_commit_sync_init_decorator.py + entry: ./scripts/ci/pre_commit/sync_init_decorator.py pass_filenames: false files: ^airflow/models/dag\.py$|^airflow/(?:decorators|utils)/task_group\.py$ - id: check-base-operator-usage @@ -672,7 +672,7 @@ repos: - id: check-decorated-operator-implements-custom-name name: Check @task decorator implements custom_operator_name language: python - entry: ./scripts/ci/pre_commit/pre_commit_decorator_operator_implements_custom_name.py + entry: ./scripts/ci/pre_commit/decorator_operator_implements_custom_name.py pass_filenames: true files: ^airflow/.*\.py$ - id: check-core-deprecation-classes @@ -714,13 +714,13 @@ repos: pass_filenames: true - id: check-apache-license-rat name: Check if licenses are OK for Apache - entry: ./scripts/ci/pre_commit/pre_commit_check_license.py + entry: ./scripts/ci/pre_commit/check_license.py language: python files: ^.*LICENSE.*$|^.*LICENCE.*$ pass_filenames: false - id: check-aiobotocore-optional name: Check if aiobotocore is an optional dependency only - entry: ./scripts/ci/pre_commit/pre_commit_check_aiobotocore_optional.py + entry: ./scripts/ci/pre_commit/check_aiobotocore_optional.py language: python files: ^airflow/providers/.*/provider\.yaml$ pass_filenames: true @@ -729,34 +729,34 @@ repos: - id: check-boring-cyborg-configuration name: Checks for Boring Cyborg configuration consistency language: python - entry: ./scripts/ci/pre_commit/pre_commit_boring_cyborg.py + entry: ./scripts/ci/pre_commit/boring_cyborg.py pass_filenames: false require_serial: true additional_dependencies: ['pyyaml', 'termcolor==1.1.0', 'wcmatch==8.2'] - id: update-in-the-wild-to-be-sorted name: Sort INTHEWILD.md alphabetically - entry: ./scripts/ci/pre_commit/pre_commit_sort_in_the_wild.py + entry: ./scripts/ci/pre_commit/sort_in_the_wild.py language: python files: ^\.pre-commit-config\.yaml$|^INTHEWILD\.md$ pass_filenames: false require_serial: true - id: update-installed-providers-to-be-sorted name: Sort alphabetically and uniquify installed_providers.txt - entry: ./scripts/ci/pre_commit/pre_commit_sort_installed_providers.py + entry: ./scripts/ci/pre_commit/sort_installed_providers.py language: python files: ^\.pre-commit-config\.yaml$|^.*_installed_providers\.txt$ pass_filenames: false require_serial: true - id: update-spelling-wordlist-to-be-sorted name: Sort alphabetically and uniquify spelling_wordlist.txt - entry: ./scripts/ci/pre_commit/pre_commit_sort_spelling_wordlist.py + entry: ./scripts/ci/pre_commit/sort_spelling_wordlist.py language: python files: ^\.pre-commit-config\.yaml$|^docs/spelling_wordlist\.txt$ require_serial: true pass_filenames: false - id: lint-helm-chart name: Lint Helm Chart - entry: ./scripts/ci/pre_commit/pre_commit_helm_lint.py + entry: ./scripts/ci/pre_commit/helm_lint.py language: python pass_filenames: false files: ^chart @@ -764,7 +764,7 @@ repos: additional_dependencies: ['rich>=12.4.4','requests'] - id: kubeconform name: Kubeconform check on our helm chart - entry: ./scripts/ci/pre_commit/pre_commit_kubeconform.py + entry: ./scripts/ci/pre_commit/kubeconform.py language: python pass_filenames: false files: ^chart @@ -789,7 +789,7 @@ repos: stages: ['manual'] 'types_or': [javascript, ts, tsx] files: ^airflow/www/ - entry: ./scripts/ci/pre_commit/pre_commit_compile_www_assets.py + entry: ./scripts/ci/pre_commit/compile_www_assets.py pass_filenames: false additional_dependencies: ['yarn@1.22.21'] - id: compile-www-assets-dev @@ -798,35 +798,35 @@ repos: stages: ['manual'] 'types_or': [javascript, ts, tsx] files: ^airflow/www/ - entry: ./scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py + entry: ./scripts/ci/pre_commit/compile_www_assets_dev.py pass_filenames: false additional_dependencies: ['yarn@1.22.21'] - id: check-providers-init-file-missing name: Provider init file is missing pass_filenames: false always_run: true - entry: ./scripts/ci/pre_commit/pre_commit_check_providers_init.py + entry: ./scripts/ci/pre_commit/check_providers_init.py language: python - id: check-providers-subpackages-init-file-exist name: Provider subpackage init files are there pass_filenames: false always_run: true - entry: ./scripts/ci/pre_commit/pre_commit_check_providers_subpackages_all_have_init.py + entry: ./scripts/ci/pre_commit/check_providers_subpackages_all_have_init.py language: python require_serial: true - id: check-pre-commit-information-consistent name: Validate hook IDs & names and sync with docs - entry: ./scripts/ci/pre_commit/pre_commit_check_pre_commit_hooks.py + entry: ./scripts/ci/pre_commit/check_pre_commit_hooks.py args: - --max-length=60 language: python - files: ^\.pre-commit-config\.yaml$|^scripts/ci/pre_commit/pre_commit_check_pre_commit_hook_names\.py$ + files: ^\.pre-commit-config\.yaml$|^scripts/ci/pre_commit/check_pre_commit_hooks\.py$ additional_dependencies: ['pyyaml', 'jinja2', 'black==23.10.0', 'tabulate', 'rich>=12.4.4'] require_serial: true pass_filenames: false - id: check-integrations-list-consistent name: Sync integrations list with docs - entry: ./scripts/ci/pre_commit/pre_commit_check_integrations_list.py + entry: ./scripts/ci/pre_commit/check_integrations_list.py language: python files: ^scripts/ci/docker-compose/integration-.*\.yml$|^contributing-docs/testing/integration_tests.rst$ additional_dependencies: ['black==23.10.0', 'tabulate', 'rich>=12.4.4', 'pyyaml'] @@ -835,14 +835,14 @@ repos: - id: update-breeze-readme-config-hash name: Update Breeze README.md with config files hash language: python - entry: ./scripts/ci/pre_commit/pre_commit_update_breeze_config_hash.py + entry: ./scripts/ci/pre_commit/update_breeze_config_hash.py files: ^dev/breeze/pyproject\.toml$|^dev/breeze/README\.md$ pass_filenames: false require_serial: true - id: update-reproducible-source-date-epoch name: Update Source Date Epoch for reproducible builds language: python - entry: ./scripts/ci/pre_commit/pre_commit_update_source_date_epoch.py + entry: ./scripts/ci/pre_commit/update_source_date_epoch.py files: ^RELEASE_NOTES.rst$|^chart/RELEASE_NOTES.rst$ additional_dependencies: ['rich>=12.4.4', 'pyyaml'] pass_filenames: false @@ -857,7 +857,7 @@ repos: additional_dependencies: ['click', 'rich>=12.4.4', 'pyyaml'] - id: check-tests-in-the-right-folders name: Check if tests are in the right folders - entry: ./scripts/ci/pre_commit/pre_commit_check_tests_in_right_folders.py + entry: ./scripts/ci/pre_commit/check_tests_in_right_folders.py language: python files: ^tests/.*\.py pass_filenames: true @@ -865,7 +865,7 @@ repos: additional_dependencies: ['rich>=12.4.4'] - id: check-system-tests-present name: Check if system tests have required segments of code - entry: ./scripts/ci/pre_commit/pre_commit_check_system_tests.py + entry: ./scripts/ci/pre_commit/check_system_tests.py language: python files: ^tests/system/.*/example_[^/]*\.py$ exclude: ^tests/system/providers/google/cloud/bigquery/example_bigquery_queries\.py$ @@ -873,7 +873,7 @@ repos: additional_dependencies: ['rich>=12.4.4'] - id: generate-pypi-readme name: Generate PyPI README - entry: ./scripts/ci/pre_commit/pre_commit_generate_pypi_readme.py + entry: ./scripts/ci/pre_commit/generate_pypi_readme.py language: python files: ^README\.md$ pass_filenames: false @@ -887,7 +887,7 @@ repos: additional_dependencies: ['markdownlint-cli@0.38.0'] - id: lint-json-schema name: Lint JSON Schema files with JSON Schema - entry: ./scripts/ci/pre_commit/pre_commit_json_schema.py + entry: ./scripts/ci/pre_commit/json_schema.py args: - --spec-url - https://json-schema.org/draft-07/schema @@ -899,7 +899,7 @@ repos: additional_dependencies: ['jsonschema>=3.2.0,<5.0', 'PyYAML==5.3.1', 'requests==2.25.0'] - id: lint-json-schema name: Lint NodePort Service with JSON Schema - entry: ./scripts/ci/pre_commit/pre_commit_json_schema.py + entry: ./scripts/ci/pre_commit/json_schema.py args: - --spec-url - https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.20.2-standalone/service-v1.json @@ -910,7 +910,7 @@ repos: additional_dependencies: ['jsonschema>=3.2.0,<5.0', 'PyYAML==5.3.1', 'requests==2.25.0'] - id: lint-json-schema name: Lint Docker compose files with JSON Schema - entry: ./scripts/ci/pre_commit/pre_commit_json_schema.py + entry: ./scripts/ci/pre_commit/json_schema.py args: - --spec-url - https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json @@ -925,7 +925,7 @@ repos: additional_dependencies: ['jsonschema>=3.2.0,<5.0', 'PyYAML==5.3.1', 'requests==2.25.0'] - id: lint-json-schema name: Lint chart/values.schema.json file with JSON Schema - entry: ./scripts/ci/pre_commit/pre_commit_json_schema.py + entry: ./scripts/ci/pre_commit/json_schema.py args: - --spec-file - chart/values_schema.schema.json @@ -937,13 +937,13 @@ repos: additional_dependencies: ['jsonschema>=3.2.0,<5.0', 'PyYAML==5.3.1', 'requests==2.25.0'] - id: update-vendored-in-k8s-json-schema name: Vendor k8s definitions into values.schema.json - entry: ./scripts/ci/pre_commit/pre_commit_vendor_k8s_json_schema.py + entry: ./scripts/ci/pre_commit/vendor_k8s_json_schema.py language: python files: ^chart/values\.schema\.json$ additional_dependencies: ['requests==2.25.0'] - id: lint-json-schema name: Lint chart/values.yaml file with JSON Schema - entry: ./scripts/ci/pre_commit/pre_commit_json_schema.py + entry: ./scripts/ci/pre_commit/json_schema.py args: - --enforce-defaults - --spec-file @@ -956,7 +956,7 @@ repos: additional_dependencies: ['jsonschema>=3.2.0,<5.0', 'PyYAML==5.3.1', 'requests==2.25.0'] - id: lint-json-schema name: Lint config_templates/config.yml file with JSON Schema - entry: ./scripts/ci/pre_commit/pre_commit_json_schema.py + entry: ./scripts/ci/pre_commit/json_schema.py args: - --spec-file - airflow/config_templates/config.yml.schema.json @@ -967,14 +967,14 @@ repos: additional_dependencies: ['jsonschema>=3.2.0,<5.0', 'PyYAML==5.3.1', 'requests==2.25.0'] - id: check-persist-credentials-disabled-in-github-workflows name: Check that workflow files have persist-credentials disabled - entry: ./scripts/ci/pre_commit/pre_commit_checkout_no_credentials.py + entry: ./scripts/ci/pre_commit/checkout_no_credentials.py language: python pass_filenames: true files: ^\.github/workflows/.*\.yml$ additional_dependencies: ['PyYAML', 'rich>=12.4.4'] - id: check-docstring-param-types name: Check that docstrings do not specify param types - entry: ./scripts/ci/pre_commit/pre_commit_docstring_param_type.py + entry: ./scripts/ci/pre_commit/docstring_param_type.py language: python pass_filenames: true files: \.py$ @@ -982,14 +982,14 @@ repos: additional_dependencies: ['rich>=12.4.4'] - id: lint-chart-schema name: Lint chart/values.schema.json file - entry: ./scripts/ci/pre_commit/pre_commit_chart_schema.py + entry: ./scripts/ci/pre_commit/chart_schema.py language: python pass_filenames: false files: ^chart/values\.schema\.json$ require_serial: true - id: update-inlined-dockerfile-scripts name: Inline Dockerfile and Dockerfile.ci scripts - entry: ./scripts/ci/pre_commit/pre_commit_inline_scripts_in_docker.py + entry: ./scripts/ci/pre_commit/inline_scripts_in_docker.py language: python pass_filenames: false files: ^Dockerfile$|^Dockerfile\.ci$|^scripts/docker/.*$ @@ -998,33 +998,33 @@ repos: name: Check changelogs for duplicate entries language: python files: CHANGELOG\.(rst|txt)$ - entry: ./scripts/ci/pre_commit/pre_commit_changelog_duplicates.py + entry: ./scripts/ci/pre_commit/changelog_duplicates.py pass_filenames: true - id: check-newsfragments-are-valid name: Check newsfragments are valid language: python files: newsfragments/.*\.rst - entry: ./scripts/ci/pre_commit/pre_commit_newsfragments.py + entry: ./scripts/ci/pre_commit/newsfragments.py pass_filenames: true # We sometimes won't have newsfragments in the repo, so always run it so `check-hooks-apply` passes # This is fast, so not too much downside always_run: true - id: update-breeze-cmd-output name: Update output of breeze commands in Breeze documentation - entry: ./scripts/ci/pre_commit/pre_commit_breeze_cmd_line.py + entry: ./scripts/ci/pre_commit/breeze_cmd_line.py language: python files: > (?x) ^dev/breeze/.*$| ^\.pre-commit-config\.yaml$| - ^scripts/ci/pre_commit/pre_commit_breeze_cmd_line.py$| + ^scripts/ci/pre_commit/breeze_cmd_line.py$| ^generated/provider_dependencies.json$ require_serial: true pass_filenames: false additional_dependencies: ['rich>=12.4.4'] - id: check-example-dags-urls name: Check that example dags url include provider versions - entry: ./scripts/ci/pre_commit/pre_commit_update_example_dags_paths.py + entry: ./scripts/ci/pre_commit/update_example_dags_paths.py language: python pass_filenames: true files: ^docs/.*example-dags\.rst$|^docs/.*index\.rst$ @@ -1032,14 +1032,14 @@ repos: always_run: true - id: check-system-tests-tocs name: Check that system tests is properly added - entry: ./scripts/ci/pre_commit/pre_commit_check_system_tests_hidden_in_index.py + entry: ./scripts/ci/pre_commit/check_system_tests_hidden_in_index.py language: python pass_filenames: true files: ^docs/apache-airflow-providers-[^/]*/index\.rst$ additional_dependencies: ['rich>=12.4.4', 'pyyaml'] - id: check-lazy-logging name: Check that all logging methods are lazy - entry: ./scripts/ci/pre_commit/pre_commit_check_lazy_logging.py + entry: ./scripts/ci/pre_commit/check_lazy_logging.py language: python pass_filenames: true files: \.py$ @@ -1047,7 +1047,7 @@ repos: additional_dependencies: ['rich>=12.4.4', 'astor'] - id: create-missing-init-py-files-tests name: Create missing init.py files in tests - entry: ./scripts/ci/pre_commit/pre_commit_check_init_in_tests.py + entry: ./scripts/ci/pre_commit/check_init_in_tests.py language: python additional_dependencies: ['rich>=12.4.4'] pass_filenames: false @@ -1057,12 +1057,12 @@ repos: language: node 'types_or': [javascript, ts, tsx, yaml, css, json] files: ^airflow/www/static/js/|^airflow/api_connexion/openapi/v1\.yaml$ - entry: ./scripts/ci/pre_commit/pre_commit_www_lint.py + entry: ./scripts/ci/pre_commit/www_lint.py additional_dependencies: ['yarn@1.22.21', "openapi-typescript@>=6.7.4"] pass_filenames: false - id: check-tests-unittest-testcase name: Check that unit tests do not inherit from unittest.TestCase - entry: ./scripts/ci/pre_commit/pre_commit_unittest_testcase.py + entry: ./scripts/ci/pre_commit/unittest_testcase.py language: python pass_filenames: true files: ^tests/.*\.py$ @@ -1077,12 +1077,12 @@ repos: - id: check-deferrable-default-value name: Check default value of deferrable attribute language: python - entry: ./scripts/ci/pre_commit/pre_commit_check_deferrable_default.py + entry: ./scripts/ci/pre_commit/check_deferrable_default.py pass_filenames: false files: ^airflow/.*/sensors/.*\.py$|^airflow/.*/operators/.*\.py$ - id: check-provider-docs-valid name: Validate provider doc files - entry: ./scripts/ci/pre_commit/pre_commit_check_provider_docs.py + entry: ./scripts/ci/pre_commit/check_provider_docs.py language: python files: ^airflow/providers/.*/provider\.yaml|^docs/.* additional_dependencies: ['rich>=12.4.4', 'pyyaml', 'jinja2'] @@ -1159,7 +1159,7 @@ repos: - id: mypy-dev name: Run mypy for dev language: python - entry: ./scripts/ci/pre_commit/pre_commit_mypy.py + entry: ./scripts/ci/pre_commit/mypy.py files: ^dev/.*\.py$|^scripts/.*\.py$ require_serial: true additional_dependencies: ['rich>=12.4.4'] @@ -1167,7 +1167,7 @@ repos: stages: [ 'manual' ] name: Run mypy for dev (manual) language: python - entry: ./scripts/ci/pre_commit/pre_commit_mypy_folder.py dev + entry: ./scripts/ci/pre_commit/mypy_folder.py dev pass_filenames: false files: ^.*\.py$ require_serial: true @@ -1175,7 +1175,7 @@ repos: - id: mypy-airflow name: Run mypy for airflow language: python - entry: ./scripts/ci/pre_commit/pre_commit_mypy.py --namespace-packages + entry: ./scripts/ci/pre_commit/mypy.py --namespace-packages files: \.py$ exclude: ^.*/.*_vendor/|^airflow/migrations|^airflow/providers|^dev|^scripts|^docs|^provider_packages|^tests/providers|^tests/system/providers|^tests/dags/test_imports.py|^clients/python/test_.*\.py require_serial: true @@ -1184,7 +1184,7 @@ repos: stages: [ 'manual' ] name: Run mypy for airflow (manual) language: python - entry: ./scripts/ci/pre_commit/pre_commit_mypy_folder.py airflow + entry: ./scripts/ci/pre_commit/mypy_folder.py airflow pass_filenames: false files: ^.*\.py$ require_serial: true @@ -1192,7 +1192,7 @@ repos: - id: mypy-providers name: Run mypy for providers language: python - entry: ./scripts/ci/pre_commit/pre_commit_mypy.py --namespace-packages + entry: ./scripts/ci/pre_commit/mypy.py --namespace-packages files: ^airflow/providers/.*\.py$|^tests/providers/.*\.py$|^tests/system/providers/.*\.py$ exclude: ^.*/.*_vendor/ require_serial: true @@ -1201,7 +1201,7 @@ repos: stages: ['manual'] name: Run mypy for providers (manual) language: python - entry: ./scripts/ci/pre_commit/pre_commit_mypy_folder.py airflow/providers + entry: ./scripts/ci/pre_commit/mypy_folder.py airflow/providers pass_filenames: false files: ^.*\.py$ require_serial: true @@ -1209,7 +1209,7 @@ repos: - id: mypy-docs name: Run mypy for /docs/ folder language: python - entry: ./scripts/ci/pre_commit/pre_commit_mypy.py + entry: ./scripts/ci/pre_commit/mypy.py files: ^docs/.*\.py$ exclude: ^docs/rtd-deprecation require_serial: true @@ -1218,14 +1218,14 @@ repos: stages: ['manual'] name: Run mypy for /docs/ folder (manual) language: python - entry: ./scripts/ci/pre_commit/pre_commit_mypy_folder.py docs + entry: ./scripts/ci/pre_commit/mypy_folder.py docs pass_filenames: false files: ^.*\.py$ require_serial: true additional_dependencies: ['rich>=12.4.4'] - id: check-provider-yaml-valid name: Validate provider.yaml files - entry: ./scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py + entry: ./scripts/ci/pre_commit/check_provider_yaml_files.py language: python files: ^airflow/providers/.*/provider\.yaml$ additional_dependencies: ['rich>=12.4.4'] @@ -1233,14 +1233,14 @@ repos: - id: update-migration-references name: Update migration ref doc language: python - entry: ./scripts/ci/pre_commit/pre_commit_migration_reference.py + entry: ./scripts/ci/pre_commit/migration_reference.py pass_filenames: false files: ^airflow/migrations/versions/.*\.py$|^docs/apache-airflow/migrations-ref\.rst$ additional_dependencies: ['rich>=12.4.4'] - id: update-er-diagram name: Update ER diagram language: python - entry: ./scripts/ci/pre_commit/pre_commit_update_er_diagram.py + entry: ./scripts/ci/pre_commit/update_er_diagram.py pass_filenames: false files: ^airflow/migrations/versions/.*\.py$|^docs/apache-airflow/migrations-ref\.rst$ additional_dependencies: ['rich>=12.4.4'] diff --git a/README.md b/README.md index 7e0c9711e4cc..25c8bff05a81 100644 --- a/README.md +++ b/README.md @@ -288,7 +288,7 @@ packages: Apache Airflow version life cycle: - + | Version | Current Patch/Minor | State | First Release | Limited Support | EOL/Terminated | diff --git a/contributing-docs/05_pull_requests.rst b/contributing-docs/05_pull_requests.rst index d06bb7dfe440..5cc869b5a09e 100644 --- a/contributing-docs/05_pull_requests.rst +++ b/contributing-docs/05_pull_requests.rst @@ -274,7 +274,7 @@ In such cases we can usually do something like this self.my_field = my_field The reason for doing it is that we are working on a cleaning up our code to have -`pre-commit hook <../scripts/ci/pre_commit/pre_commit_validate_operators_init.py>`__ +`pre-commit hook <../scripts/ci/pre_commit/validate_operators_init.py>`__ that will make sure all the cases where logic (such as validation and complex conversion) is not done in the constructor are detected in PRs. diff --git a/dev/README_RELEASE_AIRFLOW.md b/dev/README_RELEASE_AIRFLOW.md index 7eeefb5b7361..aa2d6296a4b9 100644 --- a/dev/README_RELEASE_AIRFLOW.md +++ b/dev/README_RELEASE_AIRFLOW.md @@ -257,7 +257,7 @@ The Release Candidate artifacts we vote upon should be the exact ones we vote ag ``` - Set your version in `airflow/__init__.py`, `airflow/api_connexion/openapi/v1.yaml` and `docs/` (without the RC tag). -- Add supported Airflow version to `./scripts/ci/pre_commit/pre_commit_supported_versions.py` and let pre-commit do the job. +- Add supported Airflow version to `./scripts/ci/pre_commit/supported_versions.py` and let pre-commit do the job. - Replace the version in `README.md` and verify that installation instructions work fine. - Add entry for default python version to `BASE_PROVIDERS_COMPATIBILITY_CHECKS` in `src/airflow_breeze/global_constants.py` with the new Airflow version, and empty exclusion for providers. This list should be updated later when providers @@ -1010,7 +1010,7 @@ EOF This includes: -- Modify `./scripts/ci/pre_commit/pre_commit_supported_versions.py` and let pre-commit do the job. +- Modify `./scripts/ci/pre_commit/supported_versions.py` and let pre-commit do the job. - For major/minor release, update version in `airflow/__init__.py`, `docs/docker-stack/` and `airflow/api_connexion/openapi/v1.yaml` to the next likely minor version release. - Sync `RELEASE_NOTES.rst` (including deleting relevant `newsfragments`) and `README.md` changes. - Updating `Dockerfile` with the new version. diff --git a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py index 9463f6bc11fb..3dd8f5c179fb 100644 --- a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py @@ -796,7 +796,7 @@ def run_build_ci_image( / "scripts" / "ci" / "pre_commit" - / "pre_commit_update_providers_dependencies.py" + / "update_providers_dependencies.py" ), ], check=False, diff --git a/dev/breeze/src/airflow_breeze/utils/md5_build_check.py b/dev/breeze/src/airflow_breeze/utils/md5_build_check.py index 7f2758b15b98..006252b379b6 100644 --- a/dev/breeze/src/airflow_breeze/utils/md5_build_check.py +++ b/dev/breeze/src/airflow_breeze/utils/md5_build_check.py @@ -122,7 +122,7 @@ def calculate_md5_checksum_for_files( / "scripts" / "ci" / "pre_commit" - / "pre_commit_update_providers_dependencies.py" + / "update_providers_dependencies.py" ), ], cwd=AIRFLOW_SOURCES_ROOT, diff --git a/docs/apache-airflow/database-erd-ref.rst b/docs/apache-airflow/database-erd-ref.rst index a4ebd59e798d..80673a336ab1 100644 --- a/docs/apache-airflow/database-erd-ref.rst +++ b/docs/apache-airflow/database-erd-ref.rst @@ -33,6 +33,6 @@ Here is the current Database schema diagram. `db command `_ for the commands that you can use to manage the migrations. -.. This image is automatically generated by pre-commit via ``scripts/ci/pre_commit/pre_commit_update_er_diagram.py`` +.. This image is automatically generated by pre-commit via ``scripts/ci/pre_commit/update_er_diagram.py`` .. image:: img/airflow_erd.svg diff --git a/docs/apache-airflow/installation/supported-versions.rst b/docs/apache-airflow/installation/supported-versions.rst index e105909838fb..200a9d14eb2d 100644 --- a/docs/apache-airflow/installation/supported-versions.rst +++ b/docs/apache-airflow/installation/supported-versions.rst @@ -23,7 +23,7 @@ Version Life Cycle Apache Airflowâ„¢ version life cycle: - .. This table is automatically updated by pre-commit scripts/ci/pre_commit/pre_commit_supported_versions.py + .. This table is automatically updated by pre-commit scripts/ci/pre_commit/supported_versions.py .. Beginning of auto-generated table ========= ===================== ========= =============== ================= ================ diff --git a/docs/apache-airflow/migrations-ref.rst b/docs/apache-airflow/migrations-ref.rst index 13c70abe9d64..76ad56631f16 100644 --- a/docs/apache-airflow/migrations-ref.rst +++ b/docs/apache-airflow/migrations-ref.rst @@ -32,7 +32,7 @@ Here's the list of all the Database Migrations that are executed via when you ru - .. This table is automatically updated by pre-commit by ``scripts/ci/pre_commit/pre_commit_migration_reference.py`` + .. This table is automatically updated by pre-commit by ``scripts/ci/pre_commit/migration_reference.py`` .. All table elements are scraped from migration files .. Beginning of auto-generated table diff --git a/scripts/ci/pre_commit/pre_commit_base_operator_partial_arguments.py b/scripts/ci/pre_commit/base_operator_partial_arguments.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_base_operator_partial_arguments.py rename to scripts/ci/pre_commit/base_operator_partial_arguments.py diff --git a/scripts/ci/pre_commit/pre_commit_boring_cyborg.py b/scripts/ci/pre_commit/boring_cyborg.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_boring_cyborg.py rename to scripts/ci/pre_commit/boring_cyborg.py diff --git a/scripts/ci/pre_commit/pre_commit_breeze_cmd_line.py b/scripts/ci/pre_commit/breeze_cmd_line.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_breeze_cmd_line.py rename to scripts/ci/pre_commit/breeze_cmd_line.py diff --git a/scripts/ci/pre_commit/pre_commit_changelog_duplicates.py b/scripts/ci/pre_commit/changelog_duplicates.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_changelog_duplicates.py rename to scripts/ci/pre_commit/changelog_duplicates.py diff --git a/scripts/ci/pre_commit/pre_commit_chart_schema.py b/scripts/ci/pre_commit/chart_schema.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_chart_schema.py rename to scripts/ci/pre_commit/chart_schema.py diff --git a/scripts/ci/pre_commit/pre_commit_check_aiobotocore_optional.py b/scripts/ci/pre_commit/check_aiobotocore_optional.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_aiobotocore_optional.py rename to scripts/ci/pre_commit/check_aiobotocore_optional.py diff --git a/scripts/ci/pre_commit/pre_commit_check_airflow_bug_report_template.py b/scripts/ci/pre_commit/check_airflow_bug_report_template.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_airflow_bug_report_template.py rename to scripts/ci/pre_commit/check_airflow_bug_report_template.py diff --git a/scripts/ci/pre_commit/pre_commit_check_airflow_k8s_not_used.py b/scripts/ci/pre_commit/check_airflow_k8s_not_used.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_airflow_k8s_not_used.py rename to scripts/ci/pre_commit/check_airflow_k8s_not_used.py diff --git a/scripts/ci/pre_commit/pre_commit_check_cncf_k8s_used_for_k8s_executor_only.py b/scripts/ci/pre_commit/check_cncf_k8s_used_for_k8s_executor_only.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_cncf_k8s_used_for_k8s_executor_only.py rename to scripts/ci/pre_commit/check_cncf_k8s_used_for_k8s_executor_only.py diff --git a/scripts/ci/pre_commit/pre_commit_check_common_sql_dependency.py b/scripts/ci/pre_commit/check_common_sql_dependency.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_common_sql_dependency.py rename to scripts/ci/pre_commit/check_common_sql_dependency.py diff --git a/scripts/ci/pre_commit/pre_commit_check_deferrable_default.py b/scripts/ci/pre_commit/check_deferrable_default.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_deferrable_default.py rename to scripts/ci/pre_commit/check_deferrable_default.py diff --git a/scripts/ci/pre_commit/pre_commit_check_extra_packages_ref.py b/scripts/ci/pre_commit/check_extra_packages_ref.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_extra_packages_ref.py rename to scripts/ci/pre_commit/check_extra_packages_ref.py diff --git a/scripts/ci/pre_commit/pre_commit_check_google_re2_imports.py b/scripts/ci/pre_commit/check_google_re2_imports.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_google_re2_imports.py rename to scripts/ci/pre_commit/check_google_re2_imports.py diff --git a/scripts/ci/pre_commit/pre_commit_check_init_in_tests.py b/scripts/ci/pre_commit/check_init_in_tests.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_init_in_tests.py rename to scripts/ci/pre_commit/check_init_in_tests.py diff --git a/scripts/ci/pre_commit/pre_commit_check_integrations_list.py b/scripts/ci/pre_commit/check_integrations_list.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_integrations_list.py rename to scripts/ci/pre_commit/check_integrations_list.py diff --git a/scripts/ci/pre_commit/pre_commit_check_lazy_logging.py b/scripts/ci/pre_commit/check_lazy_logging.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_lazy_logging.py rename to scripts/ci/pre_commit/check_lazy_logging.py diff --git a/scripts/ci/pre_commit/pre_commit_check_license.py b/scripts/ci/pre_commit/check_license.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_license.py rename to scripts/ci/pre_commit/check_license.py diff --git a/scripts/ci/pre_commit/pre_commit_check_order_dockerfile_extras.py b/scripts/ci/pre_commit/check_order_dockerfile_extras.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_order_dockerfile_extras.py rename to scripts/ci/pre_commit/check_order_dockerfile_extras.py diff --git a/scripts/ci/pre_commit/pre_commit_check_order_hatch_build.py b/scripts/ci/pre_commit/check_order_hatch_build.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_order_hatch_build.py rename to scripts/ci/pre_commit/check_order_hatch_build.py diff --git a/scripts/ci/pre_commit/pre_commit_check_pre_commit_hooks.py b/scripts/ci/pre_commit/check_pre_commit_hooks.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_pre_commit_hooks.py rename to scripts/ci/pre_commit/check_pre_commit_hooks.py diff --git a/scripts/ci/pre_commit/pre_commit_check_provider_airflow_compatibility.py b/scripts/ci/pre_commit/check_provider_airflow_compatibility.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_provider_airflow_compatibility.py rename to scripts/ci/pre_commit/check_provider_airflow_compatibility.py diff --git a/scripts/ci/pre_commit/pre_commit_check_provider_docs.py b/scripts/ci/pre_commit/check_provider_docs.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_provider_docs.py rename to scripts/ci/pre_commit/check_provider_docs.py diff --git a/scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py b/scripts/ci/pre_commit/check_provider_yaml_files.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py rename to scripts/ci/pre_commit/check_provider_yaml_files.py diff --git a/scripts/ci/pre_commit/pre_commit_check_providers_init.py b/scripts/ci/pre_commit/check_providers_init.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_providers_init.py rename to scripts/ci/pre_commit/check_providers_init.py diff --git a/scripts/ci/pre_commit/pre_commit_check_providers_subpackages_all_have_init.py b/scripts/ci/pre_commit/check_providers_subpackages_all_have_init.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_providers_subpackages_all_have_init.py rename to scripts/ci/pre_commit/check_providers_subpackages_all_have_init.py diff --git a/scripts/ci/pre_commit/pre_commit_check_system_tests.py b/scripts/ci/pre_commit/check_system_tests.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_system_tests.py rename to scripts/ci/pre_commit/check_system_tests.py diff --git a/scripts/ci/pre_commit/pre_commit_check_system_tests_hidden_in_index.py b/scripts/ci/pre_commit/check_system_tests_hidden_in_index.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_system_tests_hidden_in_index.py rename to scripts/ci/pre_commit/check_system_tests_hidden_in_index.py diff --git a/scripts/ci/pre_commit/pre_commit_check_tests_in_right_folders.py b/scripts/ci/pre_commit/check_tests_in_right_folders.py similarity index 96% rename from scripts/ci/pre_commit/pre_commit_check_tests_in_right_folders.py rename to scripts/ci/pre_commit/check_tests_in_right_folders.py index 69319d43ac04..314076fafd94 100755 --- a/scripts/ci/pre_commit/pre_commit_check_tests_in_right_folders.py +++ b/scripts/ci/pre_commit/check_tests_in_right_folders.py @@ -92,7 +92,7 @@ if not any(file.startswith(f"tests/{folder}/") for folder in POSSIBLE_TEST_FOLDERS): console.print( "[red]The file is in a wrong folder. Make sure to move it to the right folder " - "listed in `./script/ci/pre_commit/pre_commit_check_tests_in_right_folders.py` " + "listed in `./script/ci/pre_commit/check_tests_in_right_folders.py` " "or create new folder and add it to the script if you know what you are doing.[/]" ) console.print(file) diff --git a/scripts/ci/pre_commit/pre_commit_checkout_no_credentials.py b/scripts/ci/pre_commit/checkout_no_credentials.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_checkout_no_credentials.py rename to scripts/ci/pre_commit/checkout_no_credentials.py diff --git a/scripts/ci/pre_commit/pre_commit_compile_www_assets.py b/scripts/ci/pre_commit/compile_www_assets.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_compile_www_assets.py rename to scripts/ci/pre_commit/compile_www_assets.py diff --git a/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py b/scripts/ci/pre_commit/compile_www_assets_dev.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py rename to scripts/ci/pre_commit/compile_www_assets_dev.py diff --git a/scripts/ci/pre_commit/pre_commit_decorator_operator_implements_custom_name.py b/scripts/ci/pre_commit/decorator_operator_implements_custom_name.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_decorator_operator_implements_custom_name.py rename to scripts/ci/pre_commit/decorator_operator_implements_custom_name.py diff --git a/scripts/ci/pre_commit/pre_commit_docstring_param_type.py b/scripts/ci/pre_commit/docstring_param_type.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_docstring_param_type.py rename to scripts/ci/pre_commit/docstring_param_type.py diff --git a/scripts/ci/pre_commit/pre_commit_generate_airflow_diagrams.py b/scripts/ci/pre_commit/generate_airflow_diagrams.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_generate_airflow_diagrams.py rename to scripts/ci/pre_commit/generate_airflow_diagrams.py diff --git a/scripts/ci/pre_commit/pre_commit_generate_pypi_readme.py b/scripts/ci/pre_commit/generate_pypi_readme.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_generate_pypi_readme.py rename to scripts/ci/pre_commit/generate_pypi_readme.py diff --git a/scripts/ci/pre_commit/pre_commit_helm_lint.py b/scripts/ci/pre_commit/helm_lint.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_helm_lint.py rename to scripts/ci/pre_commit/helm_lint.py diff --git a/scripts/ci/pre_commit/pre_commit_inline_scripts_in_docker.py b/scripts/ci/pre_commit/inline_scripts_in_docker.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_inline_scripts_in_docker.py rename to scripts/ci/pre_commit/inline_scripts_in_docker.py diff --git a/scripts/ci/pre_commit/pre_commit_insert_extras.py b/scripts/ci/pre_commit/insert_extras.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_insert_extras.py rename to scripts/ci/pre_commit/insert_extras.py diff --git a/scripts/ci/pre_commit/pre_commit_json_schema.py b/scripts/ci/pre_commit/json_schema.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_json_schema.py rename to scripts/ci/pre_commit/json_schema.py diff --git a/scripts/ci/pre_commit/pre_commit_kubeconform.py b/scripts/ci/pre_commit/kubeconform.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_kubeconform.py rename to scripts/ci/pre_commit/kubeconform.py diff --git a/scripts/ci/pre_commit/pre_commit_lint_dockerfile.py b/scripts/ci/pre_commit/lint_dockerfile.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_lint_dockerfile.py rename to scripts/ci/pre_commit/lint_dockerfile.py diff --git a/scripts/ci/pre_commit/pre_commit_local_yml_mounts.py b/scripts/ci/pre_commit/local_yml_mounts.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_local_yml_mounts.py rename to scripts/ci/pre_commit/local_yml_mounts.py diff --git a/scripts/ci/pre_commit/pre_commit_migration_reference.py b/scripts/ci/pre_commit/migration_reference.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_migration_reference.py rename to scripts/ci/pre_commit/migration_reference.py diff --git a/scripts/ci/pre_commit/pre_commit_mypy.py b/scripts/ci/pre_commit/mypy.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_mypy.py rename to scripts/ci/pre_commit/mypy.py diff --git a/scripts/ci/pre_commit/pre_commit_mypy_folder.py b/scripts/ci/pre_commit/mypy_folder.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_mypy_folder.py rename to scripts/ci/pre_commit/mypy_folder.py diff --git a/scripts/ci/pre_commit/pre_commit_new_session_in_provide_session.py b/scripts/ci/pre_commit/new_session_in_provide_session.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_new_session_in_provide_session.py rename to scripts/ci/pre_commit/new_session_in_provide_session.py diff --git a/scripts/ci/pre_commit/pre_commit_newsfragments.py b/scripts/ci/pre_commit/newsfragments.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_newsfragments.py rename to scripts/ci/pre_commit/newsfragments.py diff --git a/scripts/ci/pre_commit/pre_commit_replace_bad_characters.py b/scripts/ci/pre_commit/replace_bad_characters.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_replace_bad_characters.py rename to scripts/ci/pre_commit/replace_bad_characters.py diff --git a/scripts/ci/pre_commit/pre_commit_ruff_format.py b/scripts/ci/pre_commit/ruff_format.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_ruff_format.py rename to scripts/ci/pre_commit/ruff_format.py diff --git a/scripts/ci/pre_commit/pre_commit_sort_in_the_wild.py b/scripts/ci/pre_commit/sort_in_the_wild.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_sort_in_the_wild.py rename to scripts/ci/pre_commit/sort_in_the_wild.py diff --git a/scripts/ci/pre_commit/pre_commit_sort_installed_providers.py b/scripts/ci/pre_commit/sort_installed_providers.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_sort_installed_providers.py rename to scripts/ci/pre_commit/sort_installed_providers.py diff --git a/scripts/ci/pre_commit/pre_commit_sort_spelling_wordlist.py b/scripts/ci/pre_commit/sort_spelling_wordlist.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_sort_spelling_wordlist.py rename to scripts/ci/pre_commit/sort_spelling_wordlist.py diff --git a/scripts/ci/pre_commit/pre_commit_supported_versions.py b/scripts/ci/pre_commit/supported_versions.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_supported_versions.py rename to scripts/ci/pre_commit/supported_versions.py diff --git a/scripts/ci/pre_commit/pre_commit_sync_init_decorator.py b/scripts/ci/pre_commit/sync_init_decorator.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_sync_init_decorator.py rename to scripts/ci/pre_commit/sync_init_decorator.py diff --git a/scripts/ci/pre_commit/pre_commit_template_context_key_sync.py b/scripts/ci/pre_commit/template_context_key_sync.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_template_context_key_sync.py rename to scripts/ci/pre_commit/template_context_key_sync.py diff --git a/scripts/ci/pre_commit/pre_commit_unittest_testcase.py b/scripts/ci/pre_commit/unittest_testcase.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_unittest_testcase.py rename to scripts/ci/pre_commit/unittest_testcase.py diff --git a/scripts/ci/pre_commit/pre_commit_update_black_version.py b/scripts/ci/pre_commit/update_black_version.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_black_version.py rename to scripts/ci/pre_commit/update_black_version.py diff --git a/scripts/ci/pre_commit/pre_commit_update_breeze_config_hash.py b/scripts/ci/pre_commit/update_breeze_config_hash.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_breeze_config_hash.py rename to scripts/ci/pre_commit/update_breeze_config_hash.py diff --git a/scripts/ci/pre_commit/pre_commit_update_build_dependencies.py b/scripts/ci/pre_commit/update_build_dependencies.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_build_dependencies.py rename to scripts/ci/pre_commit/update_build_dependencies.py diff --git a/scripts/ci/pre_commit/pre_commit_update_chart_dependencies.py b/scripts/ci/pre_commit/update_chart_dependencies.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_chart_dependencies.py rename to scripts/ci/pre_commit/update_chart_dependencies.py diff --git a/scripts/ci/pre_commit/pre_commit_update_common_sql_api_stubs.py b/scripts/ci/pre_commit/update_common_sql_api_stubs.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_common_sql_api_stubs.py rename to scripts/ci/pre_commit/update_common_sql_api_stubs.py diff --git a/scripts/ci/pre_commit/pre_commit_update_er_diagram.py b/scripts/ci/pre_commit/update_er_diagram.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_er_diagram.py rename to scripts/ci/pre_commit/update_er_diagram.py diff --git a/scripts/ci/pre_commit/pre_commit_update_example_dags_paths.py b/scripts/ci/pre_commit/update_example_dags_paths.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_example_dags_paths.py rename to scripts/ci/pre_commit/update_example_dags_paths.py diff --git a/scripts/ci/pre_commit/pre_commit_update_installers.py b/scripts/ci/pre_commit/update_installers.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_installers.py rename to scripts/ci/pre_commit/update_installers.py diff --git a/scripts/ci/pre_commit/pre_commit_update_providers_dependencies.py b/scripts/ci/pre_commit/update_providers_dependencies.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_providers_dependencies.py rename to scripts/ci/pre_commit/update_providers_dependencies.py diff --git a/scripts/ci/pre_commit/pre_commit_update_providers_dependencies.py.md5sum b/scripts/ci/pre_commit/update_providers_dependencies.py.md5sum similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_providers_dependencies.py.md5sum rename to scripts/ci/pre_commit/update_providers_dependencies.py.md5sum diff --git a/scripts/ci/pre_commit/pre_commit_update_source_date_epoch.py b/scripts/ci/pre_commit/update_source_date_epoch.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_source_date_epoch.py rename to scripts/ci/pre_commit/update_source_date_epoch.py diff --git a/scripts/ci/pre_commit/pre_commit_update_versions.py b/scripts/ci/pre_commit/update_versions.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_update_versions.py rename to scripts/ci/pre_commit/update_versions.py diff --git a/scripts/ci/pre_commit/pre_commit_validate_operators_init.py b/scripts/ci/pre_commit/validate_operators_init.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_validate_operators_init.py rename to scripts/ci/pre_commit/validate_operators_init.py diff --git a/scripts/ci/pre_commit/pre_commit_vendor_k8s_json_schema.py b/scripts/ci/pre_commit/vendor_k8s_json_schema.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_vendor_k8s_json_schema.py rename to scripts/ci/pre_commit/vendor_k8s_json_schema.py diff --git a/scripts/ci/pre_commit/pre_commit_version_heads_map.py b/scripts/ci/pre_commit/version_heads_map.py similarity index 97% rename from scripts/ci/pre_commit/pre_commit_version_heads_map.py rename to scripts/ci/pre_commit/version_heads_map.py index f3cf7ef7d779..4277c4656472 100755 --- a/scripts/ci/pre_commit/pre_commit_version_heads_map.py +++ b/scripts/ci/pre_commit/version_heads_map.py @@ -69,7 +69,7 @@ def sorting_key(filen): if not match: print( f"_REVISION_HEADS_MAP not found in {DB_FILE}. If this has been removed intentionally, " - "please update scripts/ci/pre_commit/pre_commit_version_heads_map.py" + "please update scripts/ci/pre_commit/version_heads_map.py" ) sys.exit(1) diff --git a/scripts/ci/pre_commit/pre_commit_www_lint.py b/scripts/ci/pre_commit/www_lint.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_www_lint.py rename to scripts/ci/pre_commit/www_lint.py