-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.16 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
33
34
35
36
37
38
39
40
41
exclude: "^.github/"
repos:
- repo: https://github.com/pre-commit/mirrors-yapf.git
rev: v0.32.0
hooks:
- id: yapf
additional_dependencies: [toml]
#- repo: https://github.com/pre-commit/mirrors-clang-format.git
# rev: v13.0.0
# hooks:
# - id: clang-format
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude: \.fits
- id: end-of-file-fixer
exclude: \.fits
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- id: check-added-large-files
- id: check-ast
- id: check-merge-conflict
- repo: local
hooks:
- id: astyle
name: astyle custom script lints C/C++
entry: /usr/bin/astyle
args: ['-A1', '-s4', '-U', '-p', '-j', '-xC80', '-xG', '-S', '-k3', '-q', '-n']
language: script
files: '\.(cpp|c|h|hpp)$'
stages: [commit, push]
#- repo: git://github.com/detailyang/pre-commit-shell
# rev: v1.0.6
# hooks:
# - id: shell-lint
#- repo: https://github.com/lovesegfault/beautysh.git
# rev: v6.2.1
# hooks:
# - id: beautysh