Apply ruff format and lint autofixes across the codebase#102
Merged
antonpibm merged 2 commits intoJul 21, 2026
Merged
Conversation
Signed-off-by: aviv ron <rona@il.ibm.com>
aviv1ron1
requested review from
antonpibm,
freunda and
yairallouche
as code owners
July 21, 2026 08:29
…re file ruff's F401 autofix removed 'import granite_switch.hf' from hello_adapter.ipynb and granite_switch_with_hf.ipynb. That import is used only for its side effect: it registers the granite_switch architecture with transformers' AutoConfig/ AutoModelForCausalLM. Without it, the AutoModelForCausalLM.from_pretrained calls in both notebooks fail to recognize the model_type, so the tutorials break. Restore the import with a '# noqa: F401' guard so the reformat stays behavior- preserving. Also remove .git-blame-ignore-revs: the merge squashes this branch into a new commit, so the SHA to ignore isn't known until after merge. The pre-filled SHA never matched this branch's commit. The ignore entry will be added in a follow-up once the squashed commit lands on main. Signed-off-by: aviv ron <rona@il.ibm.com>
antonpibm
approved these changes
Jul 21, 2026
This was referenced Jul 21, 2026
Open
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.
What
Applies
ruff formatandruff --fix(lint autofixes) across the entire codebase. Pure mechanical reformatting — no behavioral changes.Why
This is the first of a two-PR split. Isolating the bulk reformat into its own commit/PR lets us record its SHA in
.git-blame-ignore-revssogit blameskips past the reformat to the real authorship of each line. The follow-up PR carries the CI/CD work and adds this commit's landed SHA to the ignore file.Scope
.py, 8.ipynb, 1.toml)After merge
Note the SHA this lands as on
main; it goes into.git-blame-ignore-revsin the CI/CD PR.