Skip to content

Commit

Permalink
ci: add license header pre-commit action
Browse files Browse the repository at this point in the history
Related to packit/.github#9

Signed-off-by: Matej Focko <mfocko@redhat.com>
  • Loading branch information
mfocko committed Feb 20, 2024
1 parent 68f1362 commit a27773d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,13 @@ repos:
hooks:
- id: check-github-workflows
args: ["--verbose"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: \.py$
args:
- --license-filepath
- LICENSE_HEADER.txt
- --comment-style
- "#"
2 changes: 2 additions & 0 deletions LICENSE_HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright Contributors to the Packit project.
SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions tests/integration/gitlab/test_comments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT

from datetime import datetime

from requre.online_replacing import record_requests_for_all_methods
Expand Down

0 comments on commit a27773d

Please sign in to comment.