Skip to content

Consistent indentation for python multi-line data structures. NFC - #27659

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:consistent_indentation
Sep 4, 2026
Merged

Consistent indentation for python multi-line data structures. NFC#27659
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:consistent_indentation

Conversation

@sbc100

@sbc100 sbc100 commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Standardize on 2-space indentation for multi-line lists, sets, and dictionaries across the codebase.

The reason we have some inconsistency here between out code indentation and out data structure indentation is that .style.yapf was lacking a continuation_indent_width = 2, so I added this.

Also convert SUPPORTED_LINKER_FLAGS in tools/link.py from a tuple to a set for O(1) membership lookups.

Standardize on 2-space indentation for multi-line lists, sets, and
dictionaries across the codebase.

The reason we have some inconsistency here between out code indentation
and out data structure indentation is that `.style.yapf` was lacking
a `continuation_indent_width = 2`, so I added this.

Also convert `SUPPORTED_LINKER_FLAGS` in `tools/link.py` from a tuple to
a set for O(1) membership lookups.
@sbc100
sbc100 requested review from dschuff and kripken September 4, 2026 01:39
@sbc100
sbc100 enabled auto-merge (squash) September 4, 2026 03:24
@sbc100
sbc100 merged commit 7cd002b into emscripten-core:main Sep 4, 2026
42 checks passed
@sbc100
sbc100 deleted the consistent_indentation branch September 4, 2026 17:00
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