-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
refactor(utils/decorators): rewrite remove task decorator to use cst #43383
Open
josix
wants to merge
1
commit into
apache:main
Choose a base branch
from
josix:refactor/remove_task_decorator
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
josix
force-pushed
the
refactor/remove_task_decorator
branch
2 times, most recently
from
October 25, 2024 16:02
991cccc
to
4e926d5
Compare
josix
force-pushed
the
refactor/remove_task_decorator
branch
2 times, most recently
from
October 25, 2024 20:02
d5e6684
to
606b2ea
Compare
josix
commented
Oct 25, 2024
josix
force-pushed
the
refactor/remove_task_decorator
branch
from
October 26, 2024 03:45
1ec8a0a
to
28d8f2c
Compare
Lee-W
reviewed
Nov 26, 2024
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.
As we decide to use CST, just mark it as draft
josix
force-pushed
the
refactor/remove_task_decorator
branch
from
December 16, 2024 16:58
28d8f2c
to
2a82c10
Compare
josix
force-pushed
the
refactor/remove_task_decorator
branch
from
December 28, 2024 14:46
2a82c10
to
f2cbefa
Compare
josix
force-pushed
the
refactor/remove_task_decorator
branch
4 times, most recently
from
January 27, 2025 07:28
292076c
to
066d757
Compare
josix
commented
Jan 27, 2025
@@ -192,25 +192,25 @@ def test_should_create_virtualenv_with_extra_packages_uv(self, mock_execute_in_s | |||
) | |||
|
|||
def test_remove_task_decorator(self): | |||
py_source = '@task.virtualenv(serializer="dill")\ndef f():\nimport funcsigs' | |||
py_source = '@task.virtualenv(serializer="dill")\ndef f():\n import funcsigs' |
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.
note. the original syntax is invalid due to the indentation error.
josix
force-pushed
the
refactor/remove_task_decorator
branch
from
January 27, 2025 13:29
066d757
to
324301b
Compare
josix
changed the title
refactor(utils/decorators): rewrite remove task decorator to use ast
refactor(utils/decorators): rewrite remove task decorator to use cst
Jan 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
due to #42766 the dropping of python3.8 support, I rewrite the
remove_task_decorator
to achieve the same purpose through CST.TODO:
^ 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.rst
or{issue_number}.significant.rst
, in newsfragments.