The tech_review.py
module#
Summary#
Enum of files to check. |
|
Enum of directories to check. |
Check folders exist in the root of the git repository. |
|
Check naming convention, version, author, and maintainer information. |
|
Check pyproject.toml file for correct naming convention, version, author, and maintainer. |
|
Check if the author and maintainer names and emails are the same. |
|
Check setup.py file for correct naming convention, version, author, and maintainer. |
|
Download the licenses.json file and restructure it to only include the license ID and name. |
|
Remove extra information from licenses.json file. |
|
Check files exist. If they do not exist, create them using jinja templates. |
|
Generate file using jinja templates. |
|
Write generated content from jinja template to a file. |
|
Check the file content of the LICENSE and CONTRIBUTORS.md files. |
|
Check files for technical review. |
Location of the pre-commit hook on your system. |
|
JSON file containing licenses information. |
|
Default name of project authors and maintainers. |
|
Default email of project authors and maintainers. |
|
Default start year of the repository. |
|
Default license of the repository |
|
URL to retrieve list of license IDs and names. |
Description#
Module for checking if a repository is compliant with required files in the technical review.
Module detail#
- tech_review.HOOK_PATH#
Location of the pre-commit hook on your system.
- tech_review.LICENSES_JSON#
JSON file containing licenses information.
- tech_review.DEFAULT_AUTHOR_MAINT_NAME = 'ANSYS, Inc.'#
Default name of project authors and maintainers.
- tech_review.DEFAULT_AUTHOR_MAINT_EMAIL = 'pyansys.core@ansys.com'#
Default email of project authors and maintainers.
- tech_review.DEFAULT_START_YEAR#
Default start year of the repository.
- tech_review.DEFAULT_LICENSE = 'MIT'#
Default license of the repository
- tech_review.JSON_URL = 'https://raw.githubusercontent.com/spdx/license-list-data/main/json/licenses.json'#
URL to retrieve list of license IDs and names.