-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
50 lines (44 loc) · 1.3 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
# Run against all the files: pre-commit run -a
# Install the git hook scripts: pre-commit install
repos:
- repo: local
hooks:
- id: copyright
name: fix copyright
description: Check that files have a copyright notice.
entry: tools/check_copyright.py
args: [--fix]
types_or: [c++, python, cmake]
language: python
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: check-xml
- id: end-of-file-fixer
exclude: ^docker/files/patches
- id: trailing-whitespace
exclude: ^docker/files/patches
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.3
hooks:
- id: clang-format
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [--skip-string-normalization]
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-lint