Skip to content

fix: apply pre-commit lint fixes (ruff + black)#684

Open
fangfangssj wants to merge 1 commit intoPaddlePaddle:developfrom
fangfangssj:fix/pre-commit-lint
Open

fix: apply pre-commit lint fixes (ruff + black)#684
fangfangssj wants to merge 1 commit intoPaddlePaddle:developfrom
fangfangssj:fix/pre-commit-lint

Conversation

@fangfangssj
Copy link
Copy Markdown
Contributor

PR Category

Bug Fix

Description

  • Remove unused imports across paddle and torch modules
  • Remove unused local variable assignments (F841)
  • Fix explicit re-export in dim_gen_passes/init.py (F401)
  • Add noqa comments for false-positive F821 in numpy string annotations
  • Add noqa comment for E731 lambda assignment in rp_expr_passes.py
  • Add ruff per-file-ignores in pyproject.toml for numpy type annotation F821

All pre-commit hooks (black, ruff-check, remove-crlf, remove-tabs) pass.

- Remove unused imports across paddle and torch modules
- Remove unused local variable assignments (F841)
- Fix explicit re-export in dim_gen_passes/__init__.py (F401)
- Add noqa comments for false-positive F821 in numpy string annotations
- Add noqa comment for E731 lambda assignment in rp_expr_passes.py
- Add ruff per-file-ignores in pyproject.toml for numpy type annotation F821

All pre-commit hooks (black, ruff-check, remove-crlf, remove-tabs) pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Mar 28, 2026

Thanks for your contribution!

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