Skip to content

Commit a27773d

Browse files
committed
ci: add license header pre-commit action
Related to packit/.github#9 Signed-off-by: Matej Focko <[email protected]>
1 parent 68f1362 commit a27773d

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.pre-commit-config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,13 @@ repos:
6565
hooks:
6666
- id: check-github-workflows
6767
args: ["--verbose"]
68+
- repo: https://github.com/Lucas-C/pre-commit-hooks
69+
rev: v1.5.5
70+
hooks:
71+
- id: insert-license
72+
files: \.py$
73+
args:
74+
- --license-filepath
75+
- LICENSE_HEADER.txt
76+
- --comment-style
77+
- "#"

LICENSE_HEADER.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Copyright Contributors to the Packit project.
2+
SPDX-License-Identifier: MIT

tests/integration/gitlab/test_comments.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Contributors to the Packit project.
2+
# SPDX-License-Identifier: MIT
3+
14
from datetime import datetime
25

36
from requre.online_replacing import record_requests_for_all_methods

0 commit comments

Comments
 (0)