ephraimbuddy commented on code in PR #47275:
URL: https://github.com/apache/airflow/pull/47275#discussion_r1979239297
##########
.pre-commit-config.yaml:
##########
@@ -205,6 +205,14 @@ repos:
files:
^airflow/models/taskinstance.py$|^airflow/models/taskinstancehistory.py$
pass_filenames: false
require_serial: true
+ - id: prevent-usage-of-session.query
+ name: Prevent usage of session.query
+ entry: ./scripts/ci/pre_commit/usage_session_query.py
+ language: python
+ additional_dependencies: ['rich>=12.4.4']
+ files: ^airflow.*\.py$|^task_sdk.*\.py
+ exclude: ^tests/.*\.py$|^task_sdk/tests/.*\.py$
Review Comment:
```suggestion
```
Since we have given it specific files to check, do we still need to exclude
others?
--
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]