potiuk commented on code in PR #24230:
URL: https://github.com/apache/airflow/pull/24230#discussion_r889715530
##########
scripts/ci/pre_commit/pre_commit_check_2_1_compatibility.py:
##########
@@ -91,6 +92,15 @@ def _check_file(_file: Path):
f"as it is not available in Airflow 2.2[/]"
)
+ if GET_MANDATORY_MATCHER.match(line):
+ errors.append(
+ f"[red]In {_file}:{index} there is a forbidden construct "
+ f"(Airflow 2.3+ only):[/]\n\n"
+ f"{lines[index]}\n\n"
+ f"[yellow]You should not use conf.get_mandatory_value "
+ f"as it is not available in Airflow 2.2[/]"
Review Comment:
There will be a separate change about bumping min version to 2.2 after this
one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]