Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 1.08 KiB
Newer Older
Marc-Antoine Drouin's avatar
Marc-Antoine Drouin committed
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
Marc-Antoine Drouin's avatar
Marc-Antoine Drouin committed
    hooks:
      - id: check-case-conflict
      - id: check-docstring-first
      - id: check-executables-have-shebangs
      - id: check-merge-conflict
      - id: check-shebang-scripts-are-executable
      - id: end-of-file-fixer
        exclude: CHANGELOG.md
      - id: fix-byte-order-marker
      - id: mixed-line-ending
        args: ["--fix", "lf"]
      - id: trailing-whitespace
        exclude: CHANGELOG.md
      - id: check-json
      - id: check-toml
      - id: check-yaml
      - id: detect-private-key
      - id: requirements-txt-fixer
  - repo: https://github.com/astral-sh/ruff-pre-commit
    # Ruff version.
Marc-Antoine Drouin's avatar
Marc-Antoine Drouin committed
    hooks:
      # Run the linter.
      - id: ruff
        types_or: [python, pyi, jupyter]
        args: [--fix]
      # Run the formatter.
      - id: ruff-format
        types_or: [python, pyi, jupyter]
  - repo: https://github.com/compilerla/conventional-pre-commit
Marc-Antoine Drouin's avatar
Marc-Antoine Drouin committed
    hooks:
      - id: conventional-pre-commit
        stages: [commit-msg]
        args: []