Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 807 Bytes

license-headers.md

File metadata and controls

23 lines (14 loc) · 807 Bytes

Applying or updating license headers

To add or update license headers in this or other Open Data Cube projects, you can do the following:

Ensure you have pre-commit hooks installed

pre-commit install

Run the insert-license hook:

pre-commit run insert-license --all-files

To remove the license headers, add the --remove-header arg to .pre-commit-config.yaml before running the hook.

To make updates to the license text, first remove the headers, then update license-template.txt before rerunning the hook as usual to add them back.

Note that the date range is automatically updated to include the current year.

See the full documentation here: https://github.com/Lucas-C/pre-commit-hooks#insert-license