Skip to content

Commit af39faa

Browse files
authored
Fix pre-commit for checking revision heads map (#26373)
We need to check with the base_version instead of the parsed version obj
1 parent 3e917f1 commit af39faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/pre_commit/pre_commit_version_heads_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def read_current_airflow_version():
6060
if airflow_version.is_devrelease or 'b' in (airflow_version.pre or ()):
6161
exit(0)
6262
versions = read_revision_heads_map()
63-
if airflow_version not in versions:
63+
if airflow_version.base_version not in versions:
6464
print("Current airflow version is not in the REVISION_HEADS_MAP")
6565
print("Current airflow version:", airflow_version)
6666
print("Please add the version to the REVISION_HEADS_MAP at:", DB_FILE)

0 commit comments

Comments
 (0)