build(prek-hook): Check whether new "raise AirflowException" is added#55416
Conversation
f67ff02 to
23f571c
Compare
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.
Yep, we probably could exclude that file if needed. But this is the best I can think of now. |
506f630 to
9cd9e6d
Compare
9cd9e6d to
30615ae
Compare
288a6a3 to
73f587c
Compare
aaab427 to
621e7bc
Compare
Maybe better solution:
Or similar. |
621e7bc to
b109e01
Compare
|
This 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. |
That would be awesome! I really want to go back and get this one done, but never actaully have the bandwidth to do so. |
|
This 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. |
b109e01 to
5c26c0b
Compare
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 :)
5c26c0b to
c3b6c00
Compare
9ebcfb6 to
99ada8e
Compare
99ada8e to
4724c32
Compare
|
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
…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.