-
Notifications
You must be signed in to change notification settings - Fork 440
TEZ-4666: Migrate tez-tools python scripts to python3 #444
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
base: master
Are you sure you want to change the base?
Conversation
| with open(dag_json_file1) as data_file: | ||
| file1_dag_json = json.load(data_file)["dag"] if file1_using_dag_json else json.load(data_file) | ||
| counters = file1_dag_json['otherinfo']['counters'] | ||
| for group in counters['counterGroups']: |
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.
|
this is awesome @Aggarwal-Raghav , thanks! +1 |
|
The goal was to keep the changes at minimum and convert to python3. Otherwise there is scope of improvement in scripts by using |
yeah, small refactors are always welcome, absolutely fit this PR |
|
💔 -1 overall
This message was automatically generated. |
|
LGTM |
thanks for the review @maheshrajus , sure, I'll fix the failures. |
|
@maheshrajus @abstractdog , it seems that the pylint is not working in yetus based on /branch-pylint-stderr.txt , Also, 1 major flaw in python scripts are, tabs are not converted to spaces and has un-even indentation. Scripts are old and requires some decent changes. Personally, I'm ready and committed to fix them. Will also accomodate that
|
thanks a lot for taking a look at this!
|
ruff format
|
i have removed the tabs with space (just indentation change). that should fix the /blanks-eol.txt /blanks-tabs.txt and requirements.txt for now |
|
💔 -1 overall
This message was automatically generated. |
|
Earlier pylint rating: pylint rating after reformatting: |



BEFORE FIX:


AFTER FIX:

