forked from NordicSemiconductor/npmx-zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (61 loc) · 1.56 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
#
# 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
- 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==5.4.1, sphinx-ncs-theme==0.6.2]
args:
- '--cache-dir'
- 'doc/build/doctrees'
- '--html-dir'
- 'doc/build/html'
- '--source-dir'
- 'doc'
- '--warnings-as-errors'