Skip to content

Commit

Permalink
Added pre-commit config yml file to add license header to Python bind…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
SrikanthPagadarai committed Nov 20, 2024
1 parent 2196569 commit 6a59007
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: insert-license
files: bindings\/python\/genalyzer\/.*\.py$
args:
- --license-filepath
- .github/license_header.txt
- --use-current-year
- --no-extra-eol
- --detect-license-in-X-top-lines=3
3 changes: 3 additions & 0 deletions .github/workflows/license_header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Copyright (C) 2024 Analog Devices, Inc.

SPDX short identifier: ADIBSD

0 comments on commit 6a59007

Please sign in to comment.