Skip to content

Commit

Permalink
.pre-commit-config.yaml - autoupdate and add a few more hooks
Browse files Browse the repository at this point in the history
Add these hooks:
* check-xml
* check-symlinks: checks for symlinks which do not point to anything
* destroyed-symlinks:  detects symlinks which are changed to regular
  files with a content of a path which that symlink was pointing to.
* check-executables-have-shebangs:  ensures that (non-binary)
  executables have a shebang.
  • Loading branch information
Allen Winter committed Dec 14, 2023
1 parent 10e65e6 commit 46ef269
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ repos:
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: check-symlinks
- id: destroyed-symlinks
- id: check-executables-have-shebangs
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.2
rev: v17.0.6
hooks:
- id: clang-format
- repo: https://github.com/PyCQA/pylint
rev: v3.0.1
rev: v3.0.3
hooks:
- id: pylint
exclude: ^(.cmake-format.py|conan/conanfile.py|scripts/genignore.py)
Expand Down
Empty file modified unittests/keep_unused_types/keep_unused_types.wsdl
100755 → 100644
Empty file.
Empty file modified unittests/runTest.bat
100755 → 100644
Empty file.

0 comments on commit 46ef269

Please sign in to comment.