|
| 1 | +# SPDX-FileCopyrightText: 2025 SeisSol Group |
| 2 | +# |
| 3 | +# SPDX-License-Identifier: BSD-3-Clause |
| 4 | +# SPDX-LicenseComments: Full text under /LICENSE and /LICENSES/ |
| 5 | +# |
| 6 | +# SPDX-FileContributor: Author lists in /AUTHORS and /CITATION.cff |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +repos: |
| 11 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 12 | + rev: v6.0.0 |
| 13 | + hooks: |
| 14 | + - id: check-merge-conflict |
| 15 | + name: '[GENERIC] merge conflict check' |
| 16 | + - id: check-symlinks |
| 17 | + name: '[GENERIC] symlink check' |
| 18 | + - id: destroyed-symlinks |
| 19 | + name: '[GENERIC] detect broken symlinks' |
| 20 | + - id: detect-private-key |
| 21 | + name: '[GENERIC] detect private keys uploaded by accident' |
| 22 | + - id: check-case-conflict |
| 23 | + name: '[GENERIC] detect OS file naming case conflicts' |
| 24 | + - id: check-executables-have-shebangs |
| 25 | + name: '[GENERIC] check for shebangs in executable files' |
| 26 | + - id: check-illegal-windows-names |
| 27 | + name: '[GENERIC] detect illegal Windows file names' |
| 28 | + - id: check-json |
| 29 | + name: '[JSON] check' |
| 30 | + - id: check-xml |
| 31 | + name: '[XML] check' |
| 32 | + - id: check-shebang-scripts-are-executable |
| 33 | + name: '[GENERIC] check that shebang-containing files are executable' |
| 34 | + |
| 35 | +- repo: https://github.com/DavidAnson/markdownlint-cli2 |
| 36 | + rev: v0.18.1 |
| 37 | + hooks: |
| 38 | + - id: markdownlint-cli2 |
| 39 | + name: '[MARKDOWN] lint' |
| 40 | + |
| 41 | +#- repo: https://github.com/fsfe/reuse-tool |
| 42 | +# rev: v5.1.1 |
| 43 | +# hooks: |
| 44 | +# - id: reuse |
| 45 | +# name: '[GENERIC] REUSE compatibiltiy' |
| 46 | + |
| 47 | +- repo: https://github.com/psf/black-pre-commit-mirror |
| 48 | + rev: 25.1.0 |
| 49 | + hooks: |
| 50 | + - id: black |
| 51 | + language_version: python3.13 |
| 52 | + files: ^(?!preprocessing|postprocessing) |
| 53 | + name: '[PYTHON] black' |
| 54 | +- repo: https://github.com/pycqa/isort |
| 55 | + rev: 6.0.1 |
| 56 | + hooks: |
| 57 | + - id: isort |
| 58 | + files: ^(?!preprocessing|postprocessing) |
| 59 | + args: ["--profile", "black"] |
| 60 | + name: '[PYTHON] isort' |
| 61 | +- repo: https://github.com/pycqa/bandit |
| 62 | + rev: 1.8.6 |
| 63 | + hooks: |
| 64 | + - id: bandit |
| 65 | + args: ["--confidence-level", "high", "--severity-level", "high"] |
| 66 | + name: '[PYTHON] bandit' |
| 67 | +#- repo: https://github.com/pycqa/flake8 |
| 68 | +# rev: '7.3.0' |
| 69 | +# hooks: |
| 70 | +# - id: flake8 |
| 71 | +# files: ^(?!preprocessing|postprocessing) |
| 72 | +# name: '[PYTHON] Flake8' |
| 73 | + |
| 74 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 75 | + rev: v6.0.0 |
| 76 | + hooks: |
| 77 | + - id: end-of-file-fixer |
| 78 | + name: '[GENERIC] newline eof' |
| 79 | + - id: trailing-whitespace |
| 80 | + name: '[GENERIC] remove trailing whitespace' |
0 commit comments