Revision 54f019ef1026f8a3ab8fafd49eeec7cfb62e5abd authored by renchao_lu on 12 March 2021, 00:26:53 UTC, committed by renchao_lu on 12 March 2021, 00:26:53 UTC
1 parent 07ca09c
.pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md, --markdown-linebreak-ext=pandoc]
exclude: '^ThirdParty/.*|^Tests/Data/.*|^web/static/images/xsd'
- id: check-added-large-files
args: [--maxkb 1024]
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
exclude: '^scripts/ci/.*'
- id: check-toml
- repo: local
hooks:
- id: git-diff-check
name: Run git diff --check
entry: git diff --check --cached -- ':!*.md' ':!*.pandoc' ':!*.asc' ':!*.dat' ':!*.ts'
language: system
exclude: 'ThirdParty/*|Tests/Data/*|web/static/images/xsd'
stages: [commit, manual]
- id: file-extensions
name: Check file extensions
entry: scripts/hooks/pre-commit-file-extensions.sh
language: system
files: '.*\.cpp'
stages: [commit, manual]
- id: cmake-format
name: Format CMake files
entry: scripts/hooks/pre-commit-cmake-format.sh
language: system
files: 'CMakeLists.txt'
stages: [commit, manual]
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
exclude: 'ThirdParty|LinearMFront/generate_ref.py'
- repo: https://github.com/codespell-project/codespell
rev: v2.0.0
hooks:
- id: codespell
exclude: 'ThirdParty/.*|Tests/Data/.*|.*\.ya?ml|.*\.bib|^web/content/imprint.md|^GeoLib/IO/XmlIO/OpenGeoSysSTN.xsd|^Applications/FileIO/Legacy/OGSIOVer4.cpp'
Computing file changes ...