This action checks the copyright and license notices in the headers of your Python files.
Required The copyright owner.
Required The starting year of your project.
Identifier of the license for your project (cf. SPDX identifiers). Default null
.
The folders to inspect, separated by a comma. Default "."
.
The files to ignore, separated by a comma. Default "__init__.py"
.
The folders to ignore, separated by a comma. Default ".github/"
.
The path to a license notice text. If license is null
, the header will be expected to have this text as a license notice. Default null
.
The list of files with header issues.
Using an Open-source license:
uses: frgfm/validate-python-headers@main
with:
license: 'Apache-2.0'
owner: 'François-Guillaume Fernandez'
starting-year: 2022
ignore-files: 'version.py,__init__.py'
ignore-folders: '.github/'
On closed source code:
uses: frgfm/validate-python-headers@main
with:
license-notice: '.github/license-notice.txt'
owner: 'François-Guillaume Fernandez'
starting-year: 2022
ignore-files: 'version.py,__init__.py'
ignore-folders: '.github/'
Any sort of contribution is greatly appreciated!
You can find a short guide in CONTRIBUTING
to help grow this project!
Distributed under the Apache 2.0 License. See LICENSE
for more information.