-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-config.yaml
63 lines (62 loc) · 1.6 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
#
# Copyright (c) 2023 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: BSD-3-Clause
#
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.4
hooks:
- id: clang-format
types_or: [c++, c]
language: system
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
language: python
- id: mixed-line-ending
language: python
args: ['--fix=lf']
- id: trailing-whitespace
language: python
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: insert-license
language: python
name: Add license for all C and C++ files
files: \.(overlay|c|h)$
args:
- --use-current-year
- --comment-style
- "/*| *| */"
- --license-filepath
- scripts/LICENSE-template.txt
- --fuzzy-match-generates-todo
- id: insert-license
language: python
name: Add license for all Kconfig files
files: (CMakeLists.txt)|(Kconfig)|\.(conf|sh|py|yaml|yml)$
args:
- --use-current-year
- --comment-style
- "#|#|#"
- --license-filepath
- scripts/LICENSE-template.txt
- --fuzzy-match-generates-todo
- repo: https://github.com/wilu-nordic/pre-commit-sphinx
rev: 83a0d0fefdd566193d642ca28a8c4d042f714883
hooks:
- id: build-docs
language: python
files: (\.(rst)$)|(^doc)
additional_dependencies: [PyYAML==6.0.1, sphinx<7, sphinx-ncs-theme<1.1, breathe]
args:
- '--cache-dir'
- 'doc/build/doctrees'
- '--html-dir'
- 'doc/build/html'
- '--source-dir'
- 'doc'
- '--warnings-as-errors'