From 0dae8872a76f1e38bf34682be5407a841f9c46a0 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Tue, 2 Dec 2025 22:59:45 +0100 Subject: [PATCH] Add prek check before compiling assets in start-airflow --- dev/breeze/src/airflow_breeze/commands/developer_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands.py b/dev/breeze/src/airflow_breeze/commands/developer_commands.py index 481b58e610170..f63fae417d5bb 100644 --- a/dev/breeze/src/airflow_breeze/commands/developer_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/developer_commands.py @@ -122,6 +122,7 @@ ) from airflow_breeze.utils.platforms import get_normalized_platform from airflow_breeze.utils.run_utils import ( + assert_prek_installed, run_command, run_compile_ui_assets, ) @@ -634,7 +635,9 @@ def start_airflow( "[info]Detected WSL environment. Automatically enabled CHOKIDAR_USEPOLLING for hot reloading." ) + perform_environment_checks(quiet=False) if use_airflow_version is None and not skip_assets_compilation: + assert_prek_installed() # Now with the /ui project, lets only do a static build of /www and focus on the /ui run_compile_ui_assets(dev=dev_mode, run_in_background=True, force_clean=False) airflow_constraints_reference = _determine_constraint_branch_used( @@ -700,7 +703,6 @@ def start_airflow( use_uv=use_uv, uv_http_timeout=uv_http_timeout, ) - perform_environment_checks(quiet=shell_params.quiet) rebuild_or_pull_ci_image_if_needed(command_params=shell_params) result = enter_shell(shell_params=shell_params) fix_ownership_using_docker()