The add_license_headers.py
module#
Summary#
Add lint arguments to the parser for REUSE. |
|
Link the default template and/or license from the assets folder to your git repo. |
|
Make .reuse or LICENSES directory and create symbolic link to file. |
|
Get a list of the files that are missing license headers. |
|
Set arguments for REUSE. |
|
Check if the committed file is missing its header. |
|
Check if the committed file is missing its header. |
|
Check if file before the hook ran is the same as after the hook ran. |
|
Add earlier hook changes to updated file with header. |
|
Update file paths to be absolute paths with system separators. |
|
Update the LICENSE file to match MIT.txt, adjusting the year span to each repository. |
|
Unlink the default asset files, and remove directories if empty. |
|
Find files that are missing license headers and run REUSE on them. |
|
Find files missing license headers and run REUSE on them. |
Default template to use for license headers. |
|
Default copyright line for license headers. |
|
Default license for headers. |
|
Description#
Module for running REUSE to add missing license headers to files.
A license header consists of the Ansys copyright statement and licensing information.
Module detail#
- add_license_headers.DEFAULT_TEMPLATE = 'ansys'#
Default template to use for license headers.
- add_license_headers.DEFAULT_COPYRIGHT = 'ANSYS, Inc. and/or its affiliates.'#
Default copyright line for license headers.
- add_license_headers.DEFAULT_LICENSE = 'MIT'#
Default license for headers.
- add_license_headers.DEFAULT_START_YEAR#