This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new b448261cf07 [v3-1-test] Limit Python prek hooks to use Python 3.10 
(#58439) (#58458)
b448261cf07 is described below

commit b448261cf07b3c609551e598c2588ebff951044c
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 18 23:11:29 2025 +0100

    [v3-1-test] Limit Python prek hooks to use Python 3.10 (#58439) (#58458)
    
    We have inline project metadata in the prek hooks, and that means
    that each of the scripts will use their own venv to roon. However
    Airflow code and libraries does not support Python 3.14 yet (and will
    not for quite a while - because our dependencies will need time to
    catch-up. In the meantime we have to limit prek hooks to not install
    Python 3.14.
    
    Actually in order to have good stability, we are fine to limiting
    EVERYONE to use Python 3.10 for prek. There are no real benefits from
    using a different Python version (except maybe a little speed but
    prek-hooks are generally rather fast anyway) and we can definitely
    benefit from better stability and having exactly the same output
    for prek hooks by everyone. Uv will handle installation of the
    right python version automatically.
    (cherry picked from commit d31e5785fa1b5aec97083766dc9a5b441dd0642a)
    
    
    Fixes: #56048
    
    Co-authored-by: Jarek Potiuk <[email protected]>
---
 scripts/ci/prek/boring_cyborg.py                             | 2 +-
 scripts/ci/prek/breeze_cmd_line.py                           | 2 +-
 scripts/ci/prek/capture_airflowctl_help.py                   | 2 +-
 scripts/ci/prek/check_aiobotocore_optional.py                | 2 +-
 scripts/ci/prek/check_airflow_bug_report_template.py         | 2 +-
 scripts/ci/prek/check_airflow_imports.py                     | 2 +-
 scripts/ci/prek/check_airflow_v_imports_in_tests.py          | 2 +-
 scripts/ci/prek/check_base_operator_partial_arguments.py     | 2 +-
 scripts/ci/prek/check_common_sql_dependency.py               | 2 +-
 scripts/ci/prek/check_default_configuration.py               | 2 +-
 scripts/ci/prek/check_deferrable_default.py                  | 2 +-
 scripts/ci/prek/check_deprecations.py                        | 2 +-
 scripts/ci/prek/check_extra_packages_ref.py                  | 2 +-
 scripts/ci/prek/check_i18n_json.py                           | 2 +-
 scripts/ci/prek/check_imports_in_providers.py                | 2 +-
 scripts/ci/prek/check_init_decorator_arguments.py            | 2 +-
 scripts/ci/prek/check_init_in_tests.py                       | 2 +-
 scripts/ci/prek/check_integrations_list.py                   | 2 +-
 scripts/ci/prek/check_kubeconform.py                         | 2 +-
 scripts/ci/prek/check_lazy_logging.py                        | 2 +-
 scripts/ci/prek/check_min_python_version.py                  | 2 +-
 scripts/ci/prek/check_order_dockerfile_extras.py             | 2 +-
 scripts/ci/prek/check_provider_docs.py                       | 2 +-
 scripts/ci/prek/check_provider_yaml_files.py                 | 2 +-
 scripts/ci/prek/check_providers_subpackages_all_have_init.py | 2 +-
 scripts/ci/prek/check_revision_heads_map.py                  | 2 +-
 scripts/ci/prek/check_schema_defaults.py                     | 2 +-
 scripts/ci/prek/check_sdk_imports.py                         | 2 +-
 scripts/ci/prek/check_shared_distributions_structure.py      | 2 +-
 scripts/ci/prek/check_shared_distributions_usage.py          | 2 +-
 scripts/ci/prek/check_system_tests.py                        | 2 +-
 scripts/ci/prek/check_system_tests_hidden_in_index.py        | 2 +-
 scripts/ci/prek/check_template_context_variable_in_sync.py   | 2 +-
 scripts/ci/prek/check_template_fields.py                     | 2 +-
 scripts/ci/prek/check_tests_in_right_folders.py              | 2 +-
 scripts/ci/prek/check_ti_vs_tis_attributes.py                | 2 +-
 scripts/ci/prek/checkout_no_credentials.py                   | 2 +-
 scripts/ci/prek/docstring_param_type.py                      | 2 +-
 scripts/ci/prek/generate_airflow_diagrams.py                 | 2 +-
 scripts/ci/prek/generate_openapi_spec.py                     | 2 +-
 scripts/ci/prek/generate_openapi_spec_providers.py           | 2 +-
 scripts/ci/prek/generate_volumes_for_sources.py              | 2 +-
 scripts/ci/prek/lint_helm.py                                 | 2 +-
 scripts/ci/prek/lint_json_schema.py                          | 2 +-
 scripts/ci/prek/migration_reference.py                       | 2 +-
 scripts/ci/prek/mypy.py                                      | 2 +-
 scripts/ci/prek/mypy_folder.py                               | 2 +-
 scripts/ci/prek/prevent_deprecated_sqlalchemy_usage.py       | 2 +-
 scripts/ci/prek/replace_bad_characters.py                    | 2 +-
 scripts/ci/prek/ruff_format.py                               | 2 +-
 scripts/ci/prek/significant_newsfragments_checker.py         | 2 +-
 scripts/ci/prek/sort_in_the_wild.py                          | 2 +-
 scripts/ci/prek/supported_versions.py                        | 2 +-
 scripts/ci/prek/update_airflow_pyproject_toml.py             | 2 +-
 scripts/ci/prek/update_chart_dependencies.py                 | 2 +-
 scripts/ci/prek/update_er_diagram.py                         | 2 +-
 scripts/ci/prek/update_example_dags_paths.py                 | 2 +-
 scripts/ci/prek/update_providers_build_files.py              | 2 +-
 scripts/ci/prek/update_providers_dependencies.py             | 2 +-
 scripts/ci/prek/update_source_date_epoch.py                  | 2 +-
 scripts/ci/prek/update_versions.py                           | 2 +-
 scripts/ci/prek/upgrade_important_versions.py                | 2 +-
 scripts/ci/prek/validate_chart_annotations.py                | 2 +-
 scripts/ci/prek/validate_operators_init.py                   | 2 +-
 scripts/ci/prek/vendor_k8s_json_schema.py                    | 2 +-
 65 files changed, 65 insertions(+), 65 deletions(-)

diff --git a/scripts/ci/prek/boring_cyborg.py b/scripts/ci/prek/boring_cyborg.py
index a4dd0204f04..ce80bc4318a 100755
--- a/scripts/ci/prek/boring_cyborg.py
+++ b/scripts/ci/prek/boring_cyborg.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "termcolor==2.5.0",
diff --git a/scripts/ci/prek/breeze_cmd_line.py 
b/scripts/ci/prek/breeze_cmd_line.py
index f990fb4954a..c040bcca657 100755
--- a/scripts/ci/prek/breeze_cmd_line.py
+++ b/scripts/ci/prek/breeze_cmd_line.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/capture_airflowctl_help.py 
b/scripts/ci/prek/capture_airflowctl_help.py
index 137c73e227f..b0dd1377dd4 100755
--- a/scripts/ci/prek/capture_airflowctl_help.py
+++ b/scripts/ci/prek/capture_airflowctl_help.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "argcomplete>=1.10",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/check_aiobotocore_optional.py 
b/scripts/ci/prek/check_aiobotocore_optional.py
index 41dc160dd8d..5374719f72a 100755
--- a/scripts/ci/prek/check_aiobotocore_optional.py
+++ b/scripts/ci/prek/check_aiobotocore_optional.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "click>=8.1.8",
 #   "pyyaml>=6.0.2",
diff --git a/scripts/ci/prek/check_airflow_bug_report_template.py 
b/scripts/ci/prek/check_airflow_bug_report_template.py
index cbf041a699f..c5bc5c21823 100755
--- a/scripts/ci/prek/check_airflow_bug_report_template.py
+++ b/scripts/ci/prek/check_airflow_bug_report_template.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/check_airflow_imports.py 
b/scripts/ci/prek/check_airflow_imports.py
index 1783dfed004..9513cb06976 100755
--- a/scripts/ci/prek/check_airflow_imports.py
+++ b/scripts/ci/prek/check_airflow_imports.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_airflow_v_imports_in_tests.py 
b/scripts/ci/prek/check_airflow_v_imports_in_tests.py
index 13109164c50..86c11ce61a1 100755
--- a/scripts/ci/prek/check_airflow_v_imports_in_tests.py
+++ b/scripts/ci/prek/check_airflow_v_imports_in_tests.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_base_operator_partial_arguments.py 
b/scripts/ci/prek/check_base_operator_partial_arguments.py
index 78764d9753d..6c6201e0134 100755
--- a/scripts/ci/prek/check_base_operator_partial_arguments.py
+++ b/scripts/ci/prek/check_base_operator_partial_arguments.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_common_sql_dependency.py 
b/scripts/ci/prek/check_common_sql_dependency.py
index 7a422aee8ea..90bcbda5678 100755
--- a/scripts/ci/prek/check_common_sql_dependency.py
+++ b/scripts/ci/prek/check_common_sql_dependency.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "packaging>=25",
 #   "pyyaml>=6.0.2",
diff --git a/scripts/ci/prek/check_default_configuration.py 
b/scripts/ci/prek/check_default_configuration.py
index 8b76347cb39..7288a7a0644 100755
--- a/scripts/ci/prek/check_default_configuration.py
+++ b/scripts/ci/prek/check_default_configuration.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_deferrable_default.py 
b/scripts/ci/prek/check_deferrable_default.py
index fb0e3872966..8a9252d7644 100755
--- a/scripts/ci/prek/check_deferrable_default.py
+++ b/scripts/ci/prek/check_deferrable_default.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "libcst>=1.8.1",
 # ]
diff --git a/scripts/ci/prek/check_deprecations.py 
b/scripts/ci/prek/check_deprecations.py
index e38d87791b9..ad54dfebdb3 100755
--- a/scripts/ci/prek/check_deprecations.py
+++ b/scripts/ci/prek/check_deprecations.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 #   "python-dateutil>=2.9.0",
diff --git a/scripts/ci/prek/check_extra_packages_ref.py 
b/scripts/ci/prek/check_extra_packages_ref.py
index e7e17452a65..f380f495310 100755
--- a/scripts/ci/prek/check_extra_packages_ref.py
+++ b/scripts/ci/prek/check_extra_packages_ref.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "hatchling==1.27.0",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/check_i18n_json.py 
b/scripts/ci/prek/check_i18n_json.py
index 7c8053a6619..e093632c2e1 100755
--- a/scripts/ci/prek/check_i18n_json.py
+++ b/scripts/ci/prek/check_i18n_json.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_imports_in_providers.py 
b/scripts/ci/prek/check_imports_in_providers.py
index b3e810e5570..9d13765e6e5 100755
--- a/scripts/ci/prek/check_imports_in_providers.py
+++ b/scripts/ci/prek/check_imports_in_providers.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 #   "ruff==0.14.5",
diff --git a/scripts/ci/prek/check_init_decorator_arguments.py 
b/scripts/ci/prek/check_init_decorator_arguments.py
index 41edfbc0077..3032a06a21f 100755
--- a/scripts/ci/prek/check_init_decorator_arguments.py
+++ b/scripts/ci/prek/check_init_decorator_arguments.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_init_in_tests.py 
b/scripts/ci/prek/check_init_in_tests.py
index c5fc3f20c5f..3ac4b6b264b 100755
--- a/scripts/ci/prek/check_init_in_tests.py
+++ b/scripts/ci/prek/check_init_in_tests.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_integrations_list.py 
b/scripts/ci/prek/check_integrations_list.py
index 7d79ac76831..a6dff92cf4e 100755
--- a/scripts/ci/prek/check_integrations_list.py
+++ b/scripts/ci/prek/check_integrations_list.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/check_kubeconform.py 
b/scripts/ci/prek/check_kubeconform.py
index 38037164161..2162ff6139d 100755
--- a/scripts/ci/prek/check_kubeconform.py
+++ b/scripts/ci/prek/check_kubeconform.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "requests>=2.31.0",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/check_lazy_logging.py 
b/scripts/ci/prek/check_lazy_logging.py
index 1d7dd9062ad..c827b3310a2 100755
--- a/scripts/ci/prek/check_lazy_logging.py
+++ b/scripts/ci/prek/check_lazy_logging.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# # requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "astor>=0.8.1",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/check_min_python_version.py 
b/scripts/ci/prek/check_min_python_version.py
index cd52e03f1ec..809fc37546f 100755
--- a/scripts/ci/prek/check_min_python_version.py
+++ b/scripts/ci/prek/check_min_python_version.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_order_dockerfile_extras.py 
b/scripts/ci/prek/check_order_dockerfile_extras.py
index 925036754ee..e239dec08ae 100755
--- a/scripts/ci/prek/check_order_dockerfile_extras.py
+++ b/scripts/ci/prek/check_order_dockerfile_extras.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_provider_docs.py 
b/scripts/ci/prek/check_provider_docs.py
index 8dc9a6c3e6c..8cfcfb02571 100755
--- a/scripts/ci/prek/check_provider_docs.py
+++ b/scripts/ci/prek/check_provider_docs.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "jinja2>=3.1.2",
 #   "pyyaml>=6.0.2",
diff --git a/scripts/ci/prek/check_provider_yaml_files.py 
b/scripts/ci/prek/check_provider_yaml_files.py
index ade636a8cce..7348d4f0bb1 100755
--- a/scripts/ci/prek/check_provider_yaml_files.py
+++ b/scripts/ci/prek/check_provider_yaml_files.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_providers_subpackages_all_have_init.py 
b/scripts/ci/prek/check_providers_subpackages_all_have_init.py
index 85bf55626bc..f0bf9874424 100755
--- a/scripts/ci/prek/check_providers_subpackages_all_have_init.py
+++ b/scripts/ci/prek/check_providers_subpackages_all_have_init.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_revision_heads_map.py 
b/scripts/ci/prek/check_revision_heads_map.py
index a8bdd872d2a..969b66d182b 100755
--- a/scripts/ci/prek/check_revision_heads_map.py
+++ b/scripts/ci/prek/check_revision_heads_map.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "packaging>=25",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/check_schema_defaults.py 
b/scripts/ci/prek/check_schema_defaults.py
index ebe102136e1..3a1fb75cfbe 100755
--- a/scripts/ci/prek/check_schema_defaults.py
+++ b/scripts/ci/prek/check_schema_defaults.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "packaging>=25",
 # ]
diff --git a/scripts/ci/prek/check_sdk_imports.py 
b/scripts/ci/prek/check_sdk_imports.py
index 26ba375e8ae..f266fd3480e 100755
--- a/scripts/ci/prek/check_sdk_imports.py
+++ b/scripts/ci/prek/check_sdk_imports.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_shared_distributions_structure.py 
b/scripts/ci/prek/check_shared_distributions_structure.py
index 578867dbc68..3dfb859f83b 100755
--- a/scripts/ci/prek/check_shared_distributions_structure.py
+++ b/scripts/ci/prek/check_shared_distributions_structure.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 #   "tomli>=2.0.1",
diff --git a/scripts/ci/prek/check_shared_distributions_usage.py 
b/scripts/ci/prek/check_shared_distributions_usage.py
index 03fc2fa1459..e1fc481761c 100755
--- a/scripts/ci/prek/check_shared_distributions_usage.py
+++ b/scripts/ci/prek/check_shared_distributions_usage.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 #   "tomli>=2.0.1",
diff --git a/scripts/ci/prek/check_system_tests.py 
b/scripts/ci/prek/check_system_tests.py
index e5012e7c11e..254979f2fc4 100755
--- a/scripts/ci/prek/check_system_tests.py
+++ b/scripts/ci/prek/check_system_tests.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_system_tests_hidden_in_index.py 
b/scripts/ci/prek/check_system_tests_hidden_in_index.py
index 5dfd9236646..8a117c537e6 100755
--- a/scripts/ci/prek/check_system_tests_hidden_in_index.py
+++ b/scripts/ci/prek/check_system_tests_hidden_in_index.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/check_template_context_variable_in_sync.py 
b/scripts/ci/prek/check_template_context_variable_in_sync.py
index 1c55fbd1920..dec8708e282 100755
--- a/scripts/ci/prek/check_template_context_variable_in_sync.py
+++ b/scripts/ci/prek/check_template_context_variable_in_sync.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_template_fields.py 
b/scripts/ci/prek/check_template_fields.py
index df3e25452d0..deed0d25900 100755
--- a/scripts/ci/prek/check_template_fields.py
+++ b/scripts/ci/prek/check_template_fields.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_tests_in_right_folders.py 
b/scripts/ci/prek/check_tests_in_right_folders.py
index 7c9f34d182d..bb9e4f5cb8b 100755
--- a/scripts/ci/prek/check_tests_in_right_folders.py
+++ b/scripts/ci/prek/check_tests_in_right_folders.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/check_ti_vs_tis_attributes.py 
b/scripts/ci/prek/check_ti_vs_tis_attributes.py
index 327cd0c9b8b..bca2d521e49 100755
--- a/scripts/ci/prek/check_ti_vs_tis_attributes.py
+++ b/scripts/ci/prek/check_ti_vs_tis_attributes.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/checkout_no_credentials.py 
b/scripts/ci/prek/checkout_no_credentials.py
index 5c2b21d8dfd..d9021420ea4 100755
--- a/scripts/ci/prek/checkout_no_credentials.py
+++ b/scripts/ci/prek/checkout_no_credentials.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.1",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/docstring_param_type.py 
b/scripts/ci/prek/docstring_param_type.py
index 26a156c1c81..d68d80f3047 100755
--- a/scripts/ci/prek/docstring_param_type.py
+++ b/scripts/ci/prek/docstring_param_type.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/generate_airflow_diagrams.py 
b/scripts/ci/prek/generate_airflow_diagrams.py
index 9abd753fada..87c69839e67 100755
--- a/scripts/ci/prek/generate_airflow_diagrams.py
+++ b/scripts/ci/prek/generate_airflow_diagrams.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "diagrams>=0.23.4",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/generate_openapi_spec.py 
b/scripts/ci/prek/generate_openapi_spec.py
index 9c532a1772f..be28facec19 100755
--- a/scripts/ci/prek/generate_openapi_spec.py
+++ b/scripts/ci/prek/generate_openapi_spec.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/generate_openapi_spec_providers.py 
b/scripts/ci/prek/generate_openapi_spec_providers.py
index 7c16f7039f7..4cd8382fd9e 100755
--- a/scripts/ci/prek/generate_openapi_spec_providers.py
+++ b/scripts/ci/prek/generate_openapi_spec_providers.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/generate_volumes_for_sources.py 
b/scripts/ci/prek/generate_volumes_for_sources.py
index e2b63d0b5c6..c1921fa8488 100755
--- a/scripts/ci/prek/generate_volumes_for_sources.py
+++ b/scripts/ci/prek/generate_volumes_for_sources.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/lint_helm.py b/scripts/ci/prek/lint_helm.py
index 35b180a26ab..789e04cccf9 100755
--- a/scripts/ci/prek/lint_helm.py
+++ b/scripts/ci/prek/lint_helm.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "requests>=2.31.0",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/lint_json_schema.py 
b/scripts/ci/prek/lint_json_schema.py
index 1210e59af8a..01da062e7d4 100755
--- a/scripts/ci/prek/lint_json_schema.py
+++ b/scripts/ci/prek/lint_json_schema.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "jsonschema>=3.2.0,<5.0",
 #   "pyyaml>=6.0.2",
diff --git a/scripts/ci/prek/migration_reference.py 
b/scripts/ci/prek/migration_reference.py
index 1a87c2c1110..27a1a130b3d 100755
--- a/scripts/ci/prek/migration_reference.py
+++ b/scripts/ci/prek/migration_reference.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/mypy.py b/scripts/ci/prek/mypy.py
index 52523c094bf..8405840eaff 100755
--- a/scripts/ci/prek/mypy.py
+++ b/scripts/ci/prek/mypy.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/mypy_folder.py b/scripts/ci/prek/mypy_folder.py
index f1411ed9dc9..f581901e365 100755
--- a/scripts/ci/prek/mypy_folder.py
+++ b/scripts/ci/prek/mypy_folder.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/prevent_deprecated_sqlalchemy_usage.py 
b/scripts/ci/prek/prevent_deprecated_sqlalchemy_usage.py
index 2c61bd18269..7dd9ca9dd6c 100755
--- a/scripts/ci/prek/prevent_deprecated_sqlalchemy_usage.py
+++ b/scripts/ci/prek/prevent_deprecated_sqlalchemy_usage.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/replace_bad_characters.py 
b/scripts/ci/prek/replace_bad_characters.py
index dad63d43564..60baee6cc94 100755
--- a/scripts/ci/prek/replace_bad_characters.py
+++ b/scripts/ci/prek/replace_bad_characters.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/ruff_format.py b/scripts/ci/prek/ruff_format.py
index 66423f6b203..bf787baab6d 100755
--- a/scripts/ci/prek/ruff_format.py
+++ b/scripts/ci/prek/ruff_format.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "ruff==0.14.5",
 # ]
diff --git a/scripts/ci/prek/significant_newsfragments_checker.py 
b/scripts/ci/prek/significant_newsfragments_checker.py
index 61344862e31..3e0d12d3ee1 100755
--- a/scripts/ci/prek/significant_newsfragments_checker.py
+++ b/scripts/ci/prek/significant_newsfragments_checker.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "docutils>=0.21.2",
 #   "jinja2>=3.1.5",
diff --git a/scripts/ci/prek/sort_in_the_wild.py 
b/scripts/ci/prek/sort_in_the_wild.py
index c7c91e89c40..9cca3ece690 100755
--- a/scripts/ci/prek/sort_in_the_wild.py
+++ b/scripts/ci/prek/sort_in_the_wild.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "termcolor==2.5.0",
diff --git a/scripts/ci/prek/supported_versions.py 
b/scripts/ci/prek/supported_versions.py
index cce0254ae74..5f59e72e5c4 100755
--- a/scripts/ci/prek/supported_versions.py
+++ b/scripts/ci/prek/supported_versions.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "tabulate>=0.9.0",
 # ]
diff --git a/scripts/ci/prek/update_airflow_pyproject_toml.py 
b/scripts/ci/prek/update_airflow_pyproject_toml.py
index 1814fe3cc22..6c31a6e5ff4 100755
--- a/scripts/ci/prek/update_airflow_pyproject_toml.py
+++ b/scripts/ci/prek/update_airflow_pyproject_toml.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "packaging>=25",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/update_chart_dependencies.py 
b/scripts/ci/prek/update_chart_dependencies.py
index 45b3b6deb79..a75f7a59ac9 100755
--- a/scripts/ci/prek/update_chart_dependencies.py
+++ b/scripts/ci/prek/update_chart_dependencies.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "requests>=2.31.0",
diff --git a/scripts/ci/prek/update_er_diagram.py 
b/scripts/ci/prek/update_er_diagram.py
index 7fa6fbffc49..1d999c5d96d 100755
--- a/scripts/ci/prek/update_er_diagram.py
+++ b/scripts/ci/prek/update_er_diagram.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/update_example_dags_paths.py 
b/scripts/ci/prek/update_example_dags_paths.py
index 8f612716066..7248e74555b 100755
--- a/scripts/ci/prek/update_example_dags_paths.py
+++ b/scripts/ci/prek/update_example_dags_paths.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/update_providers_build_files.py 
b/scripts/ci/prek/update_providers_build_files.py
index 00b26c03cdc..2f86adfb0e8 100755
--- a/scripts/ci/prek/update_providers_build_files.py
+++ b/scripts/ci/prek/update_providers_build_files.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "requests>=2.31.0",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/update_providers_dependencies.py 
b/scripts/ci/prek/update_providers_dependencies.py
index 1fa03637807..a55f58b62a1 100755
--- a/scripts/ci/prek/update_providers_dependencies.py
+++ b/scripts/ci/prek/update_providers_dependencies.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/update_source_date_epoch.py 
b/scripts/ci/prek/update_source_date_epoch.py
index ae7f3f0a7a9..e23204a5685 100755
--- a/scripts/ci/prek/update_source_date_epoch.py
+++ b/scripts/ci/prek/update_source_date_epoch.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 #   "pyyaml>=6.0.2",
diff --git a/scripts/ci/prek/update_versions.py 
b/scripts/ci/prek/update_versions.py
index ad9bd390f91..4207f0f66d5 100755
--- a/scripts/ci/prek/update_versions.py
+++ b/scripts/ci/prek/update_versions.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/upgrade_important_versions.py 
b/scripts/ci/prek/upgrade_important_versions.py
index 08a66dc824d..89e668219e5 100755
--- a/scripts/ci/prek/upgrade_important_versions.py
+++ b/scripts/ci/prek/upgrade_important_versions.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "packaging>=25",
 #   "pyyaml>=6.0.2",
diff --git a/scripts/ci/prek/validate_chart_annotations.py 
b/scripts/ci/prek/validate_chart_annotations.py
index 564489a3588..03675fcff0f 100755
--- a/scripts/ci/prek/validate_chart_annotations.py
+++ b/scripts/ci/prek/validate_chart_annotations.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "pyyaml>=6.0.2",
 #   "rich>=13.6.0",
diff --git a/scripts/ci/prek/validate_operators_init.py 
b/scripts/ci/prek/validate_operators_init.py
index fcbca57f308..0ac6ae5c15c 100755
--- a/scripts/ci/prek/validate_operators_init.py
+++ b/scripts/ci/prek/validate_operators_init.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "rich>=13.6.0",
 # ]
diff --git a/scripts/ci/prek/vendor_k8s_json_schema.py 
b/scripts/ci/prek/vendor_k8s_json_schema.py
index a049a398c6b..b7949d91172 100755
--- a/scripts/ci/prek/vendor_k8s_json_schema.py
+++ b/scripts/ci/prek/vendor_k8s_json_schema.py
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 # /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.10,<3.11"
 # dependencies = [
 #   "requests==2.32.3",
 # ]


Reply via email to