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.

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.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for gdscript_api_comment_coverage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 33edbb8235353957591bda16cfa8c77d7d47da09942b6b73a698da370705bea7
MD5 8a19d1a2ebcb702a73a7cdb19ab20ea0
BLAKE2b-256 622da939c4db04c7946977aafae376dd4063ebc0bb0c9174888ea5d489efca71

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdscript_api_comment_coverage-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gdscript_api_comment_coverage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0598221a6bdb8110f28a409e0d0a13e6a3ece97a8e025c0a1b6e814dd0339604
MD5 1872cb7b12d67488ae05f76f296c3d67
BLAKE2b-256 7f8862d557d8f118e5484e48530b0178aa5e07b909d0e163e0f0f8c6b63e45b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdscript_api_comment_coverage-0.1.0-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