Check GDScript module boundaries, autoload access, and dependency drift.
Project description
Godot GDScript Architecture Guard
godot-gdscript-architecture-guard checks whether GDScript files still follow a
small architecture policy. It is aimed at projects where autoloads, shared
scripts, and feature modules can quietly become tangled during refactors.
It does not run the Godot editor. It scans .gd files and reports dependency
direction, autoload access, and unresolved res:// script/resource references.
Install
python -m pip install godot-gdscript-architecture-guard
From a source checkout:
python -m pip install -e .\godot-gdscript-architecture-guard
Quick Start
godot-architecture-guard examples\tiny-architecture-project --config architecture-guard.toml
Write SARIF for code scanning:
godot-architecture-guard . --config architecture-guard.toml --format sarif --output reports\architecture.sarif
Policy Example
[modules.ui]
paths = ["scripts/ui/**"]
may_depend_on = ["shared"]
allowed_autoloads = ["Settings"]
[modules.gameplay]
paths = ["scripts/gameplay/**"]
may_depend_on = ["shared"]
allowed_autoloads = ["GameState"]
[modules.shared]
paths = ["scripts/shared/**"]
may_depend_on = []
allowed_autoloads = []
[autoloads]
names = ["GameState", "Settings"]
If scripts/ui/menu.gd preloads res://scripts/gameplay/inventory.gd, the tool
reports a module boundary violation unless ui may depend on gameplay.
Outputs
text: local terminal report.json: CI and scripts.markdown: PR comments and review notes.sarif: GitHub code scanning.mermaid: dependency graph.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file godot_gdscript_architecture_guard-0.1.0.tar.gz.
File metadata
- Download URL: godot_gdscript_architecture_guard-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f9ecd96ce493a9e6b9219333f3dd2ced8db30e44b1115e51df3a826340f670e
|
|
| MD5 |
9cf334ea8f3b8ddac8dc4cbfceb475b7
|
|
| BLAKE2b-256 |
989de18293331e2b002e7fe4d86c76c46d8cd23114dd1220dea45da9301576f7
|
Provenance
The following attestation bundles were made for godot_gdscript_architecture_guard-0.1.0.tar.gz:
Publisher:
publish-gdscript-architecture-guard.yml on NonniGB/godot-production-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
godot_gdscript_architecture_guard-0.1.0.tar.gz -
Subject digest:
5f9ecd96ce493a9e6b9219333f3dd2ced8db30e44b1115e51df3a826340f670e - Sigstore transparency entry: 1767039288
- Sigstore integration time:
-
Permalink:
NonniGB/godot-production-toolkit@03cfb8039d9d4537909d5d3ecce5bbae61345607 -
Branch / Tag:
refs/tags/godot-gdscript-architecture-guard-v0.1.0 - Owner: https://github.com/NonniGB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-gdscript-architecture-guard.yml@03cfb8039d9d4537909d5d3ecce5bbae61345607 -
Trigger Event:
push
-
Statement type:
File details
Details for the file godot_gdscript_architecture_guard-0.1.0-py3-none-any.whl.
File metadata
- Download URL: godot_gdscript_architecture_guard-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
776094d875fa733f1f5c9f65c0e76b318a9f40de3595fccbe2cc06f9d8aba630
|
|
| MD5 |
f049ee58a11a72d716f586fb42defb23
|
|
| BLAKE2b-256 |
e397b57fdc4b9ad0743378e3e72154a2c24a7cf21a7e9ac76ca04d69217eb2f1
|
Provenance
The following attestation bundles were made for godot_gdscript_architecture_guard-0.1.0-py3-none-any.whl:
Publisher:
publish-gdscript-architecture-guard.yml on NonniGB/godot-production-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
godot_gdscript_architecture_guard-0.1.0-py3-none-any.whl -
Subject digest:
776094d875fa733f1f5c9f65c0e76b318a9f40de3595fccbe2cc06f9d8aba630 - Sigstore transparency entry: 1767039931
- Sigstore integration time:
-
Permalink:
NonniGB/godot-production-toolkit@03cfb8039d9d4537909d5d3ecce5bbae61345607 -
Branch / Tag:
refs/tags/godot-gdscript-architecture-guard-v0.1.0 - Owner: https://github.com/NonniGB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-gdscript-architecture-guard.yml@03cfb8039d9d4537909d5d3ecce5bbae61345607 -
Trigger Event:
push
-
Statement type: