-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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-4679] Make airflow/operators Pylint compatible #7757
[AIRFLOW-4679] Make airflow/operators Pylint compatible #7757
Conversation
- remove unused lineage_data field in BashOperator - fix string formatting in AirflowException in PythonVirtualenvOperator
raise AirflowException('{} only supports functions for python_callable arg', | ||
self.__class__.__name__) | ||
raise AirflowException('{} only supports functions for python_callable arg'.format( | ||
self.__class__.__name__)) |
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.
Should we use f-string?
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.
Sure.
@@ -100,8 +100,6 @@ def execute(self, context): | |||
for k, v in airflow_context_vars.items()])) | |||
env.update(airflow_context_vars) | |||
|
|||
self.lineage_data = self.bash_command |
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.
Isn't it something related to lineage? 👀
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.
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.
No, it is no longer required. The lineage backend has been modified and this was used earlier
Codecov Report
@@ Coverage Diff @@
## master #7757 +/- ##
==========================================
- Coverage 86.98% 86.91% -0.08%
==========================================
Files 915 915
Lines 44231 44224 -7
==========================================
- Hits 38476 38436 -40
- Misses 5755 5788 +33
Continue to review full report at Codecov.
|
Issue link: AIRFLOW-4679
Make sure to mark the boxes below before creating PR: [x]
[AIRFLOW-NNNN]
. AIRFLOW-NNNN = JIRA ID** For document-only changes commit message can start with
[AIRFLOW-XXXX]
.In case of fundamental code change, 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 UPDATING.md.
Read the Pull Request Guidelines for more information.