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 <[email protected]>
  • Loading branch information
mfocko committed Feb 21, 2024
1 parent b5d8112 commit 6469e76
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,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
- "#"
3 changes: 3 additions & 0 deletions LICENSE_HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023-present Contributors to the Packit Project.

SPDX-License-Identifier: MIT
3 changes: 2 additions & 1 deletion src/validation/deployment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright Contributors to the Packit project.
# SPDX-FileCopyrightText: 2023-present Contributors to the Packit Project.
#
# SPDX-License-Identifier: MIT

import enum
Expand Down
3 changes: 2 additions & 1 deletion src/validation/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright Contributors to the Packit project.
# SPDX-FileCopyrightText: 2023-present Contributors to the Packit Project.
#
# SPDX-License-Identifier: MIT

import logging
Expand Down

0 comments on commit 6469e76

Please sign in to comment.