Skip to content

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

Merged
ymo6 merged 1 commit into
mainfrom
ruff-format-v2
Oct 31, 2026
Merged

ymo6 merged 1 commit into
mainfrom
ruff-format-v2

Conversation

@ymo6

@ymo6 ymo6 commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

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

This regenerates #19 on current code. #19 was formatted before the annotation-agent restructure (966a19a) and now has 98 conflicts with main; 175 .py files on current code needed formatting, 76 of them in C_Annotation.

Stacked on the guard-fix branch remove-lab-content-agent-skill; GitHub retargets this PR to main once that merges.

Changes

  • 175 .py files reformatted.
  • pyproject.toml: new [tool.ruff] section that excludes notebooks and Markdown, so ruff format --check . gives the same result for everyone. Notebooks and README code blocks are untouched.

Verification

  • AST comparison of all 175 changed files: identical, except docstring whitespace in 11 files. All non-docstring strings are unchanged.
  • The only runtime docstring use (sync_skill_lib.py, first line as argparse --help description) is unchanged.
  • All changed files compile; ruff format --check . passes; tools/check_no_lab_specific_content.py passes.

After merging

Add the merged commit's SHA to a new .git-blame-ignore-revs file so git blame skips it.

🤖 Generated with Claude Code

Applies `ruff format` 0.17.3 (default black-compatible style, line length 88)
to every tracked .py file, so later changes have small, reviewable diffs.
Adds a [tool.ruff] section to pyproject.toml that excludes notebooks and
Markdown, so `ruff format --check .` is reproducible.

Regenerates #19 on current code. After merging, add this commit's SHA to
.git-blame-ignore-revs so `git blame` skips it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ymo6
ymo6 changed the base branch from remove-lab-content-agent-skill to main October 31, 2026 02:24
@ymo6
ymo6 merged commit 532f07d into main Oct 31, 2026
2 checks passed
@ymo6
ymo6 deleted the ruff-format-v2 branch October 31, 2026 21:39
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