Skip to content

Enable more ruff checks, part 6. NFC - #27741

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:ruff_fixes_part6
Sep 17, 2026
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:ruff_fixes_part6

Conversation

@sbc100

@sbc100 sbc100 commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

This should be the last one in the series I think.

@sbc100
sbc100 requested review from dschuff and kripken and removed request for dschuff September 17, 2026 20:30
# If `total` if not in the json dict then just use the first key. This happens when only one
# file size is reported (in this case we don't calculate or store the `total`).
first_key = list(json_data.keys())[0]
first_key = next(iter(json_data.keys()))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not a fan of this one but I guess it is faster...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I kind of agree... but I also think its better to just go with the recommendations in cases like this.

@sbc100
sbc100 merged commit 2226e48 into emscripten-core:main Sep 17, 2026
42 checks passed
@sbc100
sbc100 deleted the ruff_fixes_part6 branch September 17, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants