-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[airflow
] Extend airflow context parameter check for BaseOperator.execute
(AIR302
)
#15713
[airflow
] Extend airflow context parameter check for BaseOperator.execute
(AIR302
)
#15713
Conversation
cbc7854
to
8952c13
Compare
as a heads up, I'll be less active next week as it's the lunar new year in Taiwan. Thanks for helping out! |
|
Can you provide the motivation for these renames? We usually prefer to have active voice instead of passive (at least regarding the first two renames) (https://github.com/astral-sh/ruff/blob/2b3550c85fcc55d93216c4d4ef64c5f0a5766053/crates/ruff_python_semantic/src/analyze/visibility.rs). I'm a bit torn on the last two renames because it indicates to me that some expression / function definition has been removed but that's not the case. I think we should rename them to |
Thanks for the heads up. Have a great week! Do you know if there's more work required to complete #14626 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you.
I've a minor concern about the renames.
…r checking removed context key in execute method
…d_in_3_function_def as removed_funciton_def_in_3
…s_in_function_def
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
…arameters_in_function_def" This reverts commit f742313.
…emoved_in_3_function_def as airflow_3_removal_function_def
…def and in_airflow_task as in_airflow_task_function_def
9eb6715
to
25653cc
Compare
The motivation was to make it more accurate. I tried to change it a bit. Please take a look. Thanks! |
There're 3 cases I can think of as of now.
The first should be easy, the second might need some exploration, and the third one is a bit tricky, and I'm not even sure whether we should check it. |
airflow
] Extend airflow context parameter check for BaseOperator.execute
(AIR302
)
* main: [red-knot] Extend instance-attribute tests (#15808) Fix formatter warning message for `flake8-quotes` option (#15788) [`flake8-bugbear`] Exempt `NewType` calls where the original type is immutable (`B008`) (#15765) Add missing config docstrings (#15803) [`refurb`] Do not emit diagnostic when loop variables are used outside loop body (`FURB122`) (#15757) [`ruff`] Check for shadowed `map` before suggesting fix (`RUF058`) (#15790) [red-knot] Do not use explicit `knot_extensions.Unknown` declaration (#15787) Preserve quotes in generated byte strings (#15778) [minor] Simplify some `ExprStringLiteral` creation logic (#15775) Preserve quote style in generated code (#15726) Rename internal helper functions (#15771) [`airflow`] Extend airflow context parameter check for `BaseOperator.execute` (`AIR302`) (#15713) Implement tab autocomplete for `ruff config` (#15603)
Summary
Test Plan
a test fixture has been updated