-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (55 loc) · 1.83 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (55 loc) · 1.83 KB
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
# SPDX-FileCopyrightText: Copyright 2025 Arm Limited and affiliates.
#
# SPDX-License-Identifier: Apache-2.0
fail_fast: false
repos:
- repo: local
hooks:
# Python/YAML/shell: use hash comments (no --multi-line)
- id: reuse-annotate-current-year-python-yaml-shell-files
name: REUSE Annotate (Python add current year, merge)
language: python
additional_dependencies: [reuse==6.2.0]
entry: reuse annotate
args:
- --merge-copyrights
- --license
- Apache-2.0
- --copyright
- Arm Limited and affiliates.
- --copyright-prefix
- spdx-string
- --style
- python
pass_filenames: true
files: '(\.gitignore|\.dockerignore|requirements\.txt|bash_profile|Dockerfile|\.(py|yml|yaml|sh|bash))$'
stages: [ pre-commit ]
# JSON/Markdown/welcome.txt: use sidecar .license files
- id: reuse-annotate-current-year-json-and-md
name: REUSE Annotate (JSON/Markdown/welcome.txt sidecar fallback add current year, merge)
language: python
additional_dependencies: [reuse==6.2.0]
entry: reuse annotate
args:
- --merge-copyrights
- --license
- Apache-2.0
- --copyright
- Arm Limited and affiliates.
- --copyright-prefix
- spdx-string
- --fallback-dot-license
pass_filenames: true
files: '(welcome\.txt|\.(json|md))$'
stages: [ pre-commit ]
- repo: https://github.com/fsfe/reuse-tool
rev: v6.2.0
hooks:
- id: reuse-lint-file
stages: [ pre-commit ]
name: "REUSE Compliant Copyright and License"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
stages: [ pre-commit ]