Skip to main content

Generate GDScript API indexes and enforce public API comment coverage.

Project description

GDScript API Comment Coverage

Generate a Markdown API index for Godot GDScript projects and enforce configurable comment coverage for public classes, signals, exported properties, constants, and public functions.

The goal is practical maintainability: a codebase-level map that can run in CI and catch undocumented public APIs before they spread.

Install

python -m pip install -e .

When published:

python -m pip install gdscript-api-comment-coverage

Quick Start

gdscript-api-coverage C:\Projects\MyGame --min-all 80
gdscript-api-coverage . --min-public-func 80 --min-signal 100
gdscript-api-coverage . --write-docs docs\API_INDEX.md
gdscript-api-coverage . --format json --output gdscript-api-report.json

Run against the sample:

gdscript-api-coverage examples\tiny-godot-project --write-docs API_INDEX.md --fail-on none

What It Finds

  • class_name declarations.
  • signal declarations.
  • @export var properties, including annotation-on-previous-line style.
  • Public func declarations that do not start with _.
  • Public constants.
  • Whether each item has an immediately preceding comment.
  • Report metadata and readable threshold explanations in text and JSON output.

Comment Style

Prefer Godot doc comments:

## Emitted when data changes.
signal data_changed(id: String)

Single # comments are accepted, but ## is easier to distinguish as public documentation.

Documentation

Development

python -m pip install -e .
python -m unittest discover -s tests -v
gdscript-api-coverage examples\tiny-godot-project --min-all 60 --write-docs API_INDEX.md

Examples and fixtures are generic and should not expose private project content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdscript_api_comment_coverage-0.1.3.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdscript_api_comment_coverage-0.1.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file gdscript_api_comment_coverage-0.1.3.tar.gz.

File metadata

File hashes

Hashes for gdscript_api_comment_coverage-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8eed4425751b2bfbda3745aff3ca735a0e2394b58de84fb3838ac259d16f7302
MD5 dca453a2bb77bf86ce9e186142151712
BLAKE2b-256 320609035b1cd0666e71df9a61beb97cfd6b83ae20abdf60d26ee49353d4aac6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdscript_api_comment_coverage-0.1.3.tar.gz:

Publisher: publish-gdscript-api-comment-coverage.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gdscript_api_comment_coverage-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gdscript_api_comment_coverage-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2f1234b21f2b5b30312cf8ccd12baa6cfc71e52e1f515e3e650eade45a325afa
MD5 a8c8f713219fe32f750fa564385c6172
BLAKE2b-256 5ee433c71d71d21a5fad2b815ec202b1c81587a5143f99cce0e70566d484ebd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdscript_api_comment_coverage-0.1.3-py3-none-any.whl:

Publisher: publish-gdscript-api-comment-coverage.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page