Uh oh!
There was an error while loading. Please reload this page.
build(prek-hook): Check whether new "raise AirflowException" is added - #55416
Conversation
f67ff02 to
23f571cCompare
jscheffl
left a comment
There was a problem hiding this comment.
The currect check strategy implies that if I fix an AirflowException-typo that I am not allowed to.I asusme this is for the moment acceptable... just am thinking about this. But have no other good strategy idea in mind.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Lee-W
commented
Sep 14, 2025
Yep, we probably could exclude that file if needed. But this is the best I can think of now. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
506f630 to
9cd9e6dCompare9cd9e6d to
30615aeCompare288a6a3 to
73f587cCompareaaab427 to
621e7bcCompare
Maybe better solution:
Or similar. |
621e7bc to
b109e01CompareThis pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
Lee-W
commented
Apr 7, 2026
shahar1
left a comment
There was a problem hiding this comment.
Thanks for creating it, and apologies that I couldn't finish it up on my own.
Few comments :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5c26c0b to
c3b6c00Compare9ebcfb6 to
99ada8eCompare99ada8e to
4724c32Comparepotiuk
commented
Apr 9, 2026
Oh wow. We have that many ? |
jason810496
left a comment
There was a problem hiding this comment.
Nice! I like this simple and smart way to keep track of all existing overly broad AirflowException usages. It should help avoid adding too many broad AirflowException usages and will serve as a final warning for contributors.
jscheffl
left a comment
There was a problem hiding this comment.
Oh, wow, really many. Let me fix the edge3 provider one :-D
Uh oh!
There was an error while loading. Please reload this page.
…apache#55416) * build(prek-hook): Check whether new "raise AirflowException" is added * feat: add white list * refactor: simplify the record to use count instead of raw content * fixup! refactor: simplify the record to use count instead of raw content * refactor: filter python files that matters * fixup! refactor: filter python files that matters (cherry picked from commit 6f56aa1)
…apache#55416) * build(prek-hook): Check whether new "raise AirflowException" is added * feat: add white list * refactor: simplify the record to use count instead of raw content * fixup! refactor: simplify the record to use count instead of raw content * refactor: filter python files that matters * fixup! refactor: filter python files that matters
Why
https://lists.apache.org/thread/t8bnhyqy77kq4fk7fj3fmjd5wo9kv6w0
What
Add prek hook to detect
raise AirflowException^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.