Repository navigation
Update ruff and enable more ruff checks. NFC - #1833
Merged
Merged
Conversation
- Bump `ruff` to `0.17.6` in `requirements-dev.txt`. - Enable `FURB`, `RET`, and `SIM` in `pyproject.toml` (ignoring `uncapitalized-environment-variables`, `if-else-block-instead-of-if-exp`, `read-whole-file`, `write-whole-file`, and `superfluous-else-return`), and fix existing violations across `emsdk.py`, `test/test.py`, `scripts/`, and `bazel/`. - Annotate `exit_with_error` as `NoReturn` so `implicit-return` recognizes it does not return, and remove `cmp_version` and `passes_filters` (unused since #1710) from `emsdk.py`.
juj
reviewed
Dec 2, 2026
| def load_releases_versions(): | ||
| info = load_releases_info() | ||
| versions = list(info['releases'].keys()) | ||
| return versions |
Collaborator
There was a problem hiding this comment.
It feels like something is lost if it's not allowable to name the variable that is being returned, but I guess if it's in ruff, it's somehow pythonic, so ok I guess..
Collaborator
Author
There was a problem hiding this comment.
We can override this if we line. But also the name of the function is kind of enough in this case I think.
juj
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ruffto0.17.6inrequirements-dev.txt.FURB,RET, andSIMinpyproject.toml(ignoringuncapitalized-environment-variables,if-else-block-instead-of-if-exp,read-whole-file,write-whole-file, andsuperfluous-else-return), and fix existing violations acrossemsdk.py,test/test.py,scripts/, andbazel/.exit_with_errorasNoReturnsoimplicit-returnrecognizes it does not return, and removecmp_versionandpasses_filters(unused since Replace optional Tools fields (usinghasattr) with normal class fields. NFC #1710) fromemsdk.py.