Other language guidelines
Not all code in the Godot engine source code is written in C++. Find rules and guidelines for other languages listed here.
GDScript
We expect that, where possible, GDScript follows our GDScript style guide.
Objective-C
Our Objective-c and Objective-c++ code should follow our C++ guidelines.
Some styles are also automatically enforced using our pre-commit hooks.
Java
Godot's Java code (mostly in platform/android) is enforced via clang-format.
It is automatically enforced using our pre-commit hooks.
Keep in mind that our style guide only applies to code written and maintained by Godot,
not third-party code such as the java/src/com/google subfolder.
Python
Godot's SCons buildsystem is written in Python, and various scripts included in the source tree are also using Python. We use the Ruff linter and code formatter to format it.
We recommend you run ruff using our pre-commit hooks.
Alternatively, you can install and run Ruff separately.