summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/config.py
Commit message (Collapse)AuthorAgeFilesLines
* Expose GDScript syntax highlighter to editor pluginspassivestar2024-08-191-0/+1
|
* [Scons] Implement module dependency sorting.Fabio Alessandrelli2022-08-041-0/+1
| | | | | | | | | | | Modules can now call: env.module_add_dependencies(name: str, deps: list, optional: bool) To add required or optional dependencies during the "can_build" step. Required dependencies will be checked and the module will be not be enabled when they are missing, printing a warning to notify the user.
* Unregister GDScriptFunctionState classGeorge Marques2020-11-261-1/+0
| | | | | This is not user accessible anymore so it does not need to be show in documentation.
* DocData: Skip unexposed classesRémi Verschelde2020-04-201-1/+0
| | | | Properly expose classes that we actually want accessible.
* SCons: Format buildsystem files with psf/blackRémi Verschelde2020-03-301-0/+3
| | | | | | | | | | | | | | | | | | | | | Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
* doc: Improve docs for Resource* classesRémi Verschelde2019-06-181-0/+1
| | | | | Also move module-specific classes to their own module's `doc_classes` folder.
* SCons: Pass env to modules can_build methodRémi Verschelde2018-05-301-1/+1
| | | | | | This allows to disable modules based on the environment, in particular `env[tools]` which tells us if we are building the editor or not.
* GDScript: Refactor "GD" class prefix to "GDScript"Rémi Verschelde2017-11-161-2/+2
|
* doc: Make all module docs self-containedRémi Verschelde2017-11-151-3/+10
|
* style: Fix PEP8 blank lines issues in Python filesRémi Verschelde2016-11-011-3/+0
| | | | | | | | | | | Done with `autopep8 --select=E3,W3`, fixes: - E301 - Add missing blank line. - E302 - Add missing 2 blank lines. - E303 - Remove extra blank lines. - E304 - Remove blank line following function decorator. - E309 - Add missing blank line. - W391 - Remove trailing blank lines.
* style: Start applying PEP8 to Python files, indentation issuesRémi Verschelde2016-11-011-2/+2
| | | | | | | | | | | | | | | | | | | Done with `autopep8 --select=E1`, fixes: - E101 - Reindent all lines. - E112 - Fix under-indented comments. - E113 - Fix over-indented comments. - E115 - Fix under-indented comments. - E116 - Fix over-indented comments. - E121 - Fix a badly indented line. - E122 - Fix a badly indented line. - E123 - Fix a badly indented line. - E124 - Fix a badly indented line. - E125 - Fix indentation undistinguish from the next logical line. - E126 - Fix a badly indented line. - E127 - Fix a badly indented line. - E128 - Fix a badly indented line. - E129 - Fix a badly indented line.
* Remove trailing spacesRémi Verschelde2016-04-021-5/+5
|
* -moved script to modulesJuan Linietsky2014-02-241-0/+11