Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 895 B
Newer Older
Xuefeng Ding's avatar
Xuefeng Ding committed
repos:
Xuefeng Ding's avatar
Xuefeng Ding committed
  - repo: https://gitlab.cern.ch/pre-commit-hook-mirrors/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: check-added-large-files
      - id: check-case-conflict
      - id: check-merge-conflict
      - id: check-symlinks
      - id: check-yaml
      - id: debug-statements
      - id: end-of-file-fixer
      - id: mixed-line-ending
      - id: requirements-txt-fixer
      - id: trailing-whitespace

Xuefeng Ding's avatar
Xuefeng Ding committed
  - repo: https://gitlab.cern.ch/pre-commit-hook-mirrors/kynan/nbstripout
    rev: 0.8.0
Xuefeng Ding's avatar
Xuefeng Ding committed
    hooks:
      - id: nbstripout
        files: \.ipynb$
Xuefeng Ding's avatar
Xuefeng Ding committed

  - repo: https://gitlab.cern.ch/pre-commit-hook-mirrors/pre-commit/mirrors-clang-format
    rev: v19.1.3
    hooks:
      - id: clang-format
        files: \.(cpp|hpp|c|h)$

  - repo: https://gitlab.cern.ch/pre-commit-hook-mirrors/psf/black
    rev: 24.10.0 # Use the latest stable version
    hooks:
      - id: black