Commit 4b486f55 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Add pre-commit configuration

parent 045f48ce
Loading
Loading
Loading
Loading

.markdownlintrc

0 → 100644
+13 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2024 CERN and the Allpix Squared authors
# SPDX-License-Identifier: CC0-1.0

default = true
line-length = false
blanks-around-headings = false
link-fragments = false

[no-multiple-blanks]
maximum = 2

[blanks-around-headings]
lines_above = 1
+36 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2024 CERN and the Allpix Squared authors
# SPDX-License-Identifier: CC0-1.0

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.6.0
    hooks:
      - id: check-executables-have-shebangs
      - id: check-merge-conflict
      - id: check-shebang-scripts-are-executable
      - id: check-symlinks
      - id: check-toml
      - id: check-yaml
      - id: end-of-file-fixer
      - id: fix-byte-order-marker
      - id: mixed-line-ending
        args: [--fix=lf]
      - id: no-commit-to-branch
        args: [--branch=main]
      - id: trailing-whitespace
        args: [--markdown-linebreak-ext=md]

  - repo: https://github.com/codespell-project/codespell
    rev: v2.2.6
    hooks:
      - id: codespell

  - repo: https://github.com/pre-commit/mirrors-clang-format
    rev: v17.0.6
    hooks:
      - id: clang-format

  - repo: https://github.com/igorshubovych/markdownlint-cli
    rev: v0.40.0
    hooks:
    - id: markdownlint