-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (32 loc) · 1.37 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files # Prevent giant files from being committed
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
- id: check-executables-have-shebangs # Ensures that (non-binary) executables have a shebang.
- id: check-json # This hook checks json files for parseable syntax.
- id: check-yaml # This hook checks yaml files for parseable syntax.
- id: end-of-file-fixer # Ensures that a file is either empty, or ends with one newline.
- id: pretty-format-json # This hook sets a standard for formatting JSON files.
- id: trailing-whitespace # This hook trims trailing whitespace.
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
hooks:
- id: isort
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.1.1
hooks:
- id: clang-format
args: [--style=file, -i]
- id: clang-tidy
args: [-checks=clang-diagnostic-return-type]
files: testy\.c
- id: cppcheck
args: [--enable=all, --suppress=unusedFunction, --suppress=unmatchedSuppression]