Skip to content
Snippets Groups Projects
Verified Commit 8c13a49c authored by Lars Bilke's avatar Lars Bilke
Browse files

Formatted pre-commit-config.

parent 81329cdd
No related branches found
No related tags found
No related merge requests found
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0 rev: v3.4.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
args: [--markdown-linebreak-ext=md, --markdown-linebreak-ext=pandoc] args: [--markdown-linebreak-ext=md, --markdown-linebreak-ext=pandoc]
exclude: '^ThirdParty/.*|^Tests/Data/.*|^web/static/images/xsd' exclude: "^ThirdParty/.*|^Tests/Data/.*|^web/static/images/xsd"
- id: check-added-large-files - id: check-added-large-files
args: [--maxkb 1024] args: [--maxkb 1024]
- id: check-merge-conflict - id: check-merge-conflict
- id: check-xml - id: check-xml
- id: check-yaml - id: check-yaml
exclude: '^scripts/ci/.*|.cmake-format.yaml' exclude: "^scripts/ci/.*|.cmake-format.yaml"
- id: check-toml - id: check-toml
- repo: local - repo: local
hooks: hooks:
- id: git-diff-check - id: git-diff-check
name: Run git diff --check name: Run git diff --check
entry: git diff --check --cached -- ':!*.md' ':!*.pandoc' ':!*.asc' ':!*.dat' ':!*.ts' entry: git diff --check --cached -- ':!*.md' ':!*.pandoc' ':!*.asc' ':!*.dat' ':!*.ts'
language: system language: system
exclude: 'ThirdParty/*|Tests/Data/*|web/static/images/xsd' exclude: "ThirdParty/*|Tests/Data/*|web/static/images/xsd"
stages: [commit, manual] stages: [commit, manual]
- id: file-extensions - id: file-extensions
name: Check file extensions name: Check file extensions
entry: scripts/hooks/pre-commit-file-extensions.sh entry: scripts/hooks/pre-commit-file-extensions.sh
language: system language: system
files: '.*\.cpp' files: '.*\.cpp'
stages: [commit, manual] stages: [commit, manual]
- repo: https://github.com/ambv/black - repo: https://github.com/ambv/black
rev: 20.8b1 rev: 20.8b1
hooks: hooks:
- id: black - id: black
exclude: 'ThirdParty|LinearMFront/generate_ref.py' exclude: "ThirdParty|LinearMFront/generate_ref.py"
- repo: https://github.com/codespell-project/codespell - repo: https://github.com/codespell-project/codespell
rev: v2.0.0 rev: v2.0.0
hooks: hooks:
- id: codespell - id: codespell
exclude: 'ThirdParty/.*|Tests/Data/.*|.*\.ya?ml|.*\.bib|^web/content/imprint.md|^GeoLib/IO/XmlIO/OpenGeoSysSTN.xsd|^Applications/FileIO/Legacy/OGSIOVer4.cpp' exclude: 'ThirdParty/.*|Tests/Data/.*|.*\.ya?ml|.*\.bib|^web/content/imprint.md|^GeoLib/IO/XmlIO/OpenGeoSysSTN.xsd|^Applications/FileIO/Legacy/OGSIOVer4.cpp'
- repo: https://github.com/cheshirekow/cmake-format-precommit - repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13 rev: v0.6.13
hooks: hooks:
- id: cmake-format - id: cmake-format
additional_dependencies: ["cmakelang[YAML]"] additional_dependencies: ["cmakelang[YAML]"]
args: [--config=.cmake-format.yaml] args: [--config=.cmake-format.yaml]
exclude: 'scripts/cmake/jedbrown/.*|PackagingMacros.cmake|conan.cmake|CPM.cmake|FindFilesystem.cmake|ConanSetup.cmake|Tests.cmake' exclude: "scripts/cmake/jedbrown/.*|PackagingMacros.cmake|conan.cmake|CPM.cmake|FindFilesystem.cmake|ConanSetup.cmake|Tests.cmake"
- id: cmake-lint - id: cmake-lint
additional_dependencies: ["cmakelang[YAML]"] additional_dependencies: ["cmakelang[YAML]"]
exclude: 'scripts/cmake/jedbrown/.*|PackagingMacros.cmake|conan.cmake|CPM.cmake|FindFilesystem.cmake|ConanSetup.cmake|BuildExternalProject.cmake' exclude: "scripts/cmake/jedbrown/.*|PackagingMacros.cmake|conan.cmake|CPM.cmake|FindFilesystem.cmake|ConanSetup.cmake|BuildExternalProject.cmake"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment