Skip to content

Commit

Permalink
[Docathon][CodeStyle] refine pre-commit-config.yaml (PaddlePaddle#6250)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create authored Oct 24, 2023
1 parent 68cd30d commit d02738e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
repos:
- repo: https://github.com/psf/black.git
rev: 23.3.0
hooks:
- id: black
files: \.py$
# Common hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand All @@ -22,6 +18,7 @@ repos:
types: [text]
- id: remove-tabs
types: [text]
# Document hooks
- repo: https://github.com/ShigureLab/dochooks
rev: v0.3.0
hooks:
Expand All @@ -41,6 +38,12 @@ repos:
entry: python .pre-commit-hooks/convert_markdown_into_html.py
language: system
files: .+README(\.cn)?\.md$
# For Python files
- repo: https://github.com/psf/black.git
rev: 23.3.0
hooks:
- id: black
files: \.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.1
hooks:
Expand Down

0 comments on commit d02738e

Please sign in to comment.