Skip to content

Commit b494abd

Browse files
github-actions[bot]amoghrajesh
authored andcommitted
[v3-0-test] Make the update_installer_and_pre_commit script more resilient to re matches (#52960) (#52961)
(cherry picked from commit 8e5c284) Co-authored-by: Amogh Desai <[email protected]>
1 parent 1edbd2d commit b494abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ci/pre_commit/update_installers_and_pre_commit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ class Quoting(Enum):
9696
(re.compile(r"(AIRFLOW_UV_VERSION=)([0-9.]+)"), Quoting.UNQUOTED),
9797
(re.compile(r"(uv>=)([0-9.]+)"), Quoting.UNQUOTED),
9898
(re.compile(r"(AIRFLOW_UV_VERSION = )(\"[0-9.]+\")"), Quoting.DOUBLE_QUOTED),
99-
(re.compile(r"(UV_VERSION = )(\"[0-9.]+\")"), Quoting.DOUBLE_QUOTED),
100-
(re.compile(r"(UV_VERSION=)(\"[0-9.]+\")"), Quoting.DOUBLE_QUOTED),
99+
(re.compile(r"^(\s*UV_VERSION = )(\"[0-9.]+\")", re.MULTILINE), Quoting.DOUBLE_QUOTED),
100+
(re.compile(r"^(\s*UV_VERSION=)(\"[0-9.]+\")", re.MULTILINE), Quoting.DOUBLE_QUOTED),
101101
(re.compile(r"(\| *`AIRFLOW_UV_VERSION` *\| *)(`[0-9.]+`)( *\|)"), Quoting.REVERSE_SINGLE_QUOTED),
102102
(
103103
re.compile(

0 commit comments

Comments
 (0)