Metadata-Version: 2.1
Name: insert-license-header
Version: 1.0.2
Summary: Tool to insert license headers at the beginning of text-based files.
Project-URL: repository, https://github.com/insert-license-header
Author-email: Thomas Marwitz <thomasmarwitz3@gmail.com>, Lucas Cimon <lucas.cimon@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Requires-Dist: rapidfuzz
Description-Content-Type: text/markdown

# Tool: insert-license-header
This python script automatically inserts your license header at the beginning of specified source code files.

Forked from [Lucas-C/pre-commit-hooks](https://github.com/Lucas-C/pre-commit-hooks) and modified to realize the following behaviour:

Add argument `--dynamic-years` which determines the start year of the copyright time range automatically - based on when
the file was first tracked with Git. If a start year is already present, it is not touched.
If a file is not tracked by Git, the current year is used as start year.
The end year is automatically set to the current year
(`--use-current-year` is activated automatically when `--dynamic-years` is present).
Include a `{year_start}` and `{year_end}` in your license header to use this feature.

Add argument `--license-base64` to include a license not via a file but through
a `base64` encoded string that is passed as a value for this argument.
Obtain your license `base64` encoded string with `cat LICENSE.txt | base64`.
Including a license via `--license-base64 {base64string}` overrides the
`--license-filepath` option.

> :warning: This is not a pre-commit hook anymore. Instead, this repository contains just the base script to insert licenses in text-based files. To check out the resulting pre-commit hook, visit: TBA.
