Commit 05586a9b719c20917b652ae5f5ba206f59346805
Committed by
Henry Schreiner
1 parent
ac74dac2
chore: update style checking
Showing
3 changed files
with
23 additions
and
32 deletions
.cmake-format.yaml
0 → 100644
.pre-commit-config.yaml
| 1 | +ci: | |
| 2 | + autoupdate_commit_msg: "chore(deps): pre-commit.ci autoupdate" | |
| 3 | + skip: | |
| 4 | + - docker-clang-format | |
| 5 | + | |
| 1 | 6 | |
| 2 | 7 | repos: |
| 3 | 8 | - repo: https://github.com/psf/black |
| 4 | - rev: 20.8b1 | |
| 9 | + rev: 21.6b0 | |
| 5 | 10 | hooks: |
| 6 | 11 | - id: black |
| 7 | 12 | |
| 8 | 13 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 9 | - rev: v3.4.0 | |
| 14 | + rev: v4.0.1 | |
| 10 | 15 | hooks: |
| 11 | 16 | - id: check-added-large-files |
| 12 | - - id: mixed-line-ending | |
| 13 | - - id: trailing-whitespace | |
| 14 | - - id: check-merge-conflict | |
| 15 | 17 | - id: check-case-conflict |
| 18 | + - id: check-merge-conflict | |
| 16 | 19 | - id: check-symlinks |
| 17 | 20 | - id: check-yaml |
| 21 | + - id: end-of-file-fixer | |
| 22 | + - id: mixed-line-ending | |
| 23 | + - id: trailing-whitespace | |
| 18 | 24 | |
| 19 | 25 | - repo: local |
| 20 | 26 | hooks: |
| ... | ... | @@ -27,3 +33,9 @@ repos: |
| 27 | 33 | args: |
| 28 | 34 | - -style=file |
| 29 | 35 | - -i |
| 36 | + | |
| 37 | +- repo: https://github.com/cheshirekow/cmake-format-precommit | |
| 38 | + rev: v0.6.13 | |
| 39 | + hooks: | |
| 40 | + - id: cmake-format | |
| 41 | + additional_dependencies: [pyyaml] | ... | ... |
.pre-commit-nodocker.yaml deleted
| 1 | - | |
| 2 | -repos: | |
| 3 | -- repo: https://github.com/psf/black | |
| 4 | - rev: 19.3b0 | |
| 5 | - hooks: | |
| 6 | - - id: black | |
| 7 | -- repo: https://github.com/pre-commit/pre-commit-hooks | |
| 8 | - rev: v2.3.0 | |
| 9 | - hooks: | |
| 10 | - - id: check-added-large-files | |
| 11 | - - id: mixed-line-ending | |
| 12 | - - id: trailing-whitespace | |
| 13 | - - id: check-merge-conflict | |
| 14 | - - id: check-case-conflict | |
| 15 | - - id: check-symlinks | |
| 16 | - - id: check-yaml | |
| 17 | -- repo: local | |
| 18 | - hooks: | |
| 19 | - - id: clang-format | |
| 20 | - name: Clang Format | |
| 21 | - language: system | |
| 22 | - types: | |
| 23 | - - c++ | |
| 24 | - entry: clang-format | |
| 25 | - args: | |
| 26 | - - -style=file | |
| 27 | - - -i |