Skip to content

update pre-commit config#258

Open
GreatV wants to merge 1 commit intoPaddlePaddle:developfrom
GreatV:update_precommit_config
Open

update pre-commit config#258
GreatV wants to merge 1 commit intoPaddlePaddle:developfrom
GreatV:update_precommit_config

Conversation

@GreatV
Copy link

@GreatV GreatV commented Mar 1, 2025

This pull request updates the .pre-commit-config.yaml file to replace and add pre-commit hooks, as well as update the versions of existing hooks. The most important changes include switching from yapf to black for Python formatting, adding the ruff hook, and updating the version of the pre-commit-hooks and Lucas-C/pre-commit-hooks repositories.

Updates to pre-commit hooks:

  • Replaced the yapf hook with the black hook for Python formatting (.pre-commit-config.yaml).
  • Added the ruff hook with the --fix argument (.pre-commit-config.yaml).

Version updates:

  • Updated the pre-commit-hooks repository to version v5.0.0 (.pre-commit-config.yaml).
  • Updated the Lucas-C/pre-commit-hooks repository to version v1.5.5 (.pre-commit-config.yaml).

@paddle-bot
Copy link

paddle-bot bot commented Mar 3, 2025

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants