Skip to content

Format all Python files with ruff (format-only) - #19

Open
OlgaPushkarev wants to merge 1 commit into
remove-lab-specific-contentfrom
ruff-format
Open

OlgaPushkarev wants to merge 1 commit into
remove-lab-specific-contentfrom
ruff-format

Conversation

@OlgaPushkarev

@OlgaPushkarev OlgaPushkarev commented Oct 10, 2026 •

Copy link
Copy Markdown

Summary

Applies ruff format (default black-compatible style, line length 88) to every tracked .py file, so later changes have small, reviewable diffs. Format-only: no behavior change, and notebooks are untouched.

Second of three stacked PRs. It is based on the lab-content cleanup PR (#18); #20 builds on this one. After that one merges, GitHub retargets this PR to main.

Verification

  • ast.dump comparison of all 136 changed files before and after: identical, except docstring whitespace normalization in 17 files.
  • All tracked .py files compile, and ruff format --check passes on the whole repo.

After merging

Add the merged commit's SHA to a new .git-blame-ignore-revs file, so git blame skips this commit; GitHub reads that file automatically. The SHA is only known after a squash merge, so this is done in a follow-up.

🤖 Generated with Claude Code

Applies 'ruff format' (default black-compatible style, line length 88) to
every tracked .py file so later changes have small, reviewable diffs.
Notebooks are untouched. After this is merged, its commit should be added
to .git-blame-ignore-revs so git blame skips it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.

1 participant