Skip to content
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

Clean-up argparse usage #49739

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

gsnedders
Copy link
Member

We frequently pass action="store" (the default), set dest equal to the default (computed from the option name), and set default equal to the default. All of these are unnecessary.

This does some light reformatting, partly based on autopep8 with the expected ignores.

@jonathan-j-lee mentioned this as a nit in #49630 (comment), so, uh, let's fix all of these.

We frequently pass action="store" (the default), set dest equal to the
default (computed from the option name), and set default equal to the
default. All of these are unnecessary.
Copy link
Contributor

@jonathan-j-lee jonathan-j-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup!

@gsnedders gsnedders merged commit 9ff7e54 into web-platform-tests:master Dec 19, 2024
34 checks passed
@gsnedders gsnedders deleted the argparse-cleanup branch December 19, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci docker docs infra manifest serve wpt wptrunner The automated test runner, commonly called through ./wpt run wptserve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants