repos: # For Python files - repo: https://github.com/psf/black.git rev: 22.8.0 hooks: - id: black files: \.(py|pyi)$ additional_dependencies: [toml] - repo: https://github.com/PyCQA/isort rev: 5.11.5 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 rev: 4.0.1 hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 hooks: - id: check-merge-conflict - id: check-symlinks - id: detect-private-key files: (?!.*paddle)^.*$ - id: end-of-file-fixer files: \.md$ - id: trailing-whitespace files: \.md$ - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.1.14 hooks: - id: forbid-crlf files: \.md$ - id: remove-crlf files: \.md$ - id: forbid-tabs files: \.md$ - id: remove-tabs files: \.md$ - repo: local hooks: - id: copyright_checker name: copyright_checker entry: python .copyright.hook language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|xpu|kps|py|sh)$