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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0a347c41f09 Advise using pre-commit-uv when installing pre-commit with 
uv (#44622)
0a347c41f09 is described below

commit 0a347c41f09e563b5ee8b931705a2bf12b968dc0
Author: Jed Cunningham <[email protected]>
AuthorDate: Tue Dec 3 15:32:29 2024 -0700

    Advise using pre-commit-uv when installing pre-commit with uv (#44622)
    
    We already issue a reminder to do it since it'll be faster, so we should
    just tell folks to do it from the get go.
---
 dev/breeze/src/airflow_breeze/utils/run_utils.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev/breeze/src/airflow_breeze/utils/run_utils.py 
b/dev/breeze/src/airflow_breeze/utils/run_utils.py
index 594dc7204f2..83577033645 100644
--- a/dev/breeze/src/airflow_breeze/utils/run_utils.py
+++ b/dev/breeze/src/airflow_breeze/utils/run_utils.py
@@ -266,10 +266,10 @@ def assert_pre_commit_installed():
         need_to_reinstall_precommit = True
         get_console().print(f"\n[error]Error checking for 
pre-commit-installation: [/]\n{e}\n")
     if need_to_reinstall_precommit:
-        get_console().print("\n[info]Make sure to install pre-commit. For 
example by running\n\n")
-        get_console().print("uv tool install pre-commit\n")
+        get_console().print("[info]Make sure to install pre-commit. For 
example by running:\n")
+        get_console().print("   uv tool install pre-commit --with 
pre-commit-uv\n")
         get_console().print("Or if you prefer pipx:\n")
-        get_console().print("pipx install pre-commit")
+        get_console().print("   pipx install pre-commit")
         sys.exit(1)
 
 

Reply via email to