ashb commented on code in PR #53911:
URL: https://github.com/apache/airflow/pull/53911#discussion_r2241862627
##########
.pre-commit-config.yaml:
##########
@@ -1619,6 +1619,21 @@ repos:
types: [python]
files: ^providers/.*/src/airflow/providers/.*\.py$
require_serial: true
+ - id: check-airflow-version-checks-in-core
+ language: pygrep
+ name: No AIRFLOW_V_3* imports in airflow-core
+ entry: "import AIRFLOW_V_3"
+ files: ^airflow-core/.*\.py$
+ pass_filenames: true
+ exclude: >
+ (?x)
+ # TODO (@amoghrajesh): revisit last few in this list as they all
rely on versioned secrets masker imports
Review Comment:
A bit odd to have the comment in the regex :)
```suggestion
# TODO (@amoghrajesh): revisit last few in this list as they all
rely on versioned secrets masker imports
exclude: >
(?x)
```
--
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]