https://github.com/facultyai/apache-license-check
Check Python source files for Apache License headers
https://github.com/facultyai/apache-license-check
licensing linter python
Last synced: 9 months ago
JSON representation
Check Python source files for Apache License headers
- Host: GitHub
- URL: https://github.com/facultyai/apache-license-check
- Owner: facultyai
- License: other
- Created: 2019-06-13T12:48:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-13T14:48:43.000Z (over 2 years ago)
- Last Synced: 2024-04-25T21:45:41.501Z (about 2 years ago)
- Topics: licensing, linter, python
- Language: Python
- Homepage: https://pypi.org/project/apache-license-check/
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Apache License Check
====================
A command line tool for checking if the source files of a Python project have
Apache License headers.
Install
-------
.. code-block:: bash
pip install apache-license-check
Usage
-----
To check all Python files recursively under the current directory:
.. code-block:: bash
apache-license-check
Optionally, pass one or more files or directories to check:
.. code-block:: bash
apache-license-check setup.py myproject/
You can also check that files include a copyright statement with the
``--copyright`` flag. Pass a substring (such as the name of the copyright
holder) to check:
.. code-block:: bash
apache-license-check setup.py --copyright "Faculty Science Limited"