forked from intel/pailliercryptolib_python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
86 lines (85 loc) · 2.26 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
exclude: 'docs/doxygen/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-yaml
- repo: https://github.com/crate-ci/typos
rev: typos-v0.8.2
hooks:
- id: typos
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
files: \.(py|ipynb)$
exclude: __pycache__|build|__init__.py|fixedpoint.py|dev_*.py
args:
- --line-length
- '80'
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
files: \.py$
exclude: __pycache__|build|__init__.py|fixedpoint.py|dev_*.py
args:
- --max-line-length
- '80'
- --ignore
- E203,W503
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: clang-format
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx|js|proto)$
args:
- -i
- id: shfmt
name: shfmt
entry: shfmt
language: system
files: \.sh$
args:
- -d
- -i
- '2'
- -ci
- -sr
- -bn
- -w
- id: cpplint
name: cpplint
entry: cpplint
language: system
files: \.(cxx|cpp|hpp|hxx)$
args:
- --recursive
- --filter=-runtime/references,-whitespace/comments,-whitespace/indent
- id: cpplint-c
name: cpplint-c
entry: cpplint
language: system
files: \.(c|cc|h)$
args:
- --recursive
- --filter=-runtime/references,-whitespace/comments,-whitespace/indent,-readability/casting,-runtime/int
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
files: \.sh$
args:
- -s
- bash
- -e
- SC1091