Skip to content

Commit

Permalink
Remove license header file and script from root
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Nov 21, 2024
1 parent c12c55f commit f4ba4fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

# Path to the license header
HEADER_FILE = "license-header.txt"
HEADER_FILE = os.path.join(os.path.dirname(__file__), "license-header.txt")

# read license header
with open(HEADER_FILE) as file:
Expand Down Expand Up @@ -32,7 +32,7 @@ def apply_license_header_to_all_py_files(root_dir):
add_license_header(file_path, license_header)


# Source repertory
# Source directory
PROJECT_SRC = "xdem"

# Add header to every source files
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ repos:
# Add license header to the source files
- repo: local
hooks:
- id: add-license_header
- id: add-license-header
name: Add License Header
entry: python apply_license_header.py
entry: python .github/scripts/apply_license_header.py
language: python
files: \.py$

0 comments on commit f4ba4fa

Please sign in to comment.