Skip to content

Commit aab508f

Browse files
allow prior years in license headers
1 parent da57e46 commit aab508f

File tree

20 files changed

+31
-70
lines changed

20 files changed

+31
-70
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,23 @@ repos:
2727
name: insert-license-shell
2828
files: \.(sh|py)$
2929
args:
30-
- --license-filepath
31-
# defaults to: LICENSE.txt
32-
- HEADER
33-
- --fuzzy-match-generates-todo
34-
- --fuzzy-ratio-cut-off=85
30+
- --license-filepath=HEADER
31+
- --use-current-year
32+
- --allow-past-years
33+
- --detect-license-in-X-top-lines=10
34+
- --fuzzy-ratio-cut-off=50
35+
- --remove-header
3536
- id: insert-license
3637
name: insert-license-cpp
3738
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl|h.in)$
3839
args:
39-
- --license-filepath
40-
# defaults to: LICENSE.txt
41-
- HEADER
42-
- --comment-style
43-
- // # defaults to: #
44-
- --fuzzy-match-generates-todo
45-
- --fuzzy-ratio-cut-off=85
40+
- --license-filepath=HEADER
41+
- --comment-style=//
42+
- --use-current-year
43+
- --allow-past-years
44+
- --detect-license-in-X-top-lines=10
45+
- --fuzzy-ratio-cut-off=50
46+
- --remove-header
4647
- id: remove-tabs
4748
name: remove-tabs
4849
files: \.(py)$

HEADER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Copyright (C) 2025 Intel Corporation
1+
Copyright (C) {year} Intel Corporation
22
SPDX-License-Identifier: Apache-2.0

p-isa_tools/common/timer/timer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (C) 2025 Intel Corporation
2-
// SPDX-License-Identifier: Apache-2.0
3-
41
// Copyright (C) 2021 Intel Corporation
52
// SPDX-License-Identifier: Apache-2.0
63

p-isa_tools/kerngen/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
# Copyright (C) 2025 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
3-
4-
# Copyright (C) 2024 Intel Corporation

p-isa_tools/kerngen/high_parser/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Copyright (C) 2025 Intel Corporation
2-
# SPDX-License-Identifier: Apache-2.0
3-
41
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
53

64
"""Imports commonly used when using this package"""
75

p-isa_tools/kerngen/high_parser/generators.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Copyright (C) 2025 Intel Corporation
2-
# SPDX-License-Identifier: Apache-2.0
3-
41
# Copyright (C) 2024 Intel Corporation
52
# SPDX-License-Identifier: Apache-2.0
63

p-isa_tools/kerngen/high_parser/options_handler.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Copyright (C) 2025 Intel Corporation
2-
# SPDX-License-Identifier: Apache-2.0
3-
41
# Copyright (C) 2024 Intel Corporation
52
# SPDX-License-Identifier: Apache-2.0
63

p-isa_tools/kerngen/high_parser/pisa_operations.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Copyright (C) 2025 Intel Corporation
2-
# SPDX-License-Identifier: Apache-2.0
3-
41
# Copyright (C) 2024 Intel Corporation
52
# SPDX-License-Identifier: Apache-2.0
63

p-isa_tools/kerngen/high_parser/types.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Copyright (C) 2025 Intel Corporation
2-
# SPDX-License-Identifier: Apache-2.0
3-
41
# Copyright (C) 2024 Intel Corporation
52
# SPDX-License-Identifier: Apache-2.0
63

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
# Copyright (C) 2025 Intel Corporation
2-
# SPDX-License-Identifier: Apache-2.0
3-
41
# Copyright (C) 2024 Intel Corporation
52
# SPDX-License-Identifier: Apache-2.0

0 commit comments

Comments
 (0)