-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Convert bash scripts to Python #7465
Conversation
@DubeySandeep @vojtechjelinek @aks681 PTAL too. Thanks! |
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.
Overall LGTM! Just some minor nits. Great work btw!
scripts/install_chrome_on_travis.py
Outdated
import python_utils | ||
|
||
_PARSER = argparse.ArgumentParser(description=""" | ||
This script should only be ran by Travis to install and provide a constant |
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 script should only be ran by Travis to install and provide a constant | |
This script should only be run by Travis to install and provide a constant |
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.
Also, shouldn't these lines ideally be indented by two? I think you can use single quote strings instead of """ as we typically use the latter for docstrings.
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.
Done and used single quotes
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.
The description is exceptional since it typically has a ton of information to give. Also, indents show up in the command line and makes the output look weird.
I'm fine with this case since it's just one sentence, but I think it'd be a better idea to use triple-quotes for >1 paragraph descriptions.
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.
I tested with single quotes and the indent does not get messed up. So should I still revert the last commit?
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.
Also isn't it better to have a use only one type of quotes throughout all descriptions, just to maintain consistency
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.
I agree, having the description break at 80-characters is a nice plus too for very long sentences (which will not happen here).
I vote for triple-quote strings and no indentations, what do you think @nithusha21?
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.
lgtm!
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.
LGTM for the code owners file: .github/CODEOWNERS
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.
LGTM from code owner's perspective. Thanks!
@aks681 PTAL? |
Hi @lilithxxx. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
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.
lgtm as codeowner
@lilithxxx Note merge conflicts |
@lilithxxx Hi, what is the reason behind not migrating the |
@vojtechjelinek this is being done in #7598 |
Explanation
Convert bash scripts to Python
Checklist
python -m scripts.pre_commit_linter
andbash scripts/run_frontend_tests.sh
.