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.2.tar.gz (8.5 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.2.tar.gz.

File metadata

File hashes

Hashes for gdscript_api_comment_coverage-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d9f30250a6c71236f9ef299ca9250d0058f198e35275399d8c333ee1cd19e318
MD5 ddb18c62c692b3080b3a192e25226205
BLAKE2b-256 e018d6f9724d8ff7d99f29fe269e36ef1a042eb4a9823794e6d21ccbd085a69d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gdscript_api_comment_coverage-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 adfa48947c0ea367655122e514c89082de42c9efd6c63f5dce6503630af07bf8
MD5 33c33bc66e7374d83d8eda0085887b71
BLAKE2b-256 6b826cc9aee5316bc46150a939da1f7504b9b001652beb836c71860310d2db3f

See more details on using hashes here.

Provenance

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